Archive for October, 2008

Erlang – Working with ets:select_count

Wednesday, October 15th, 2008

In my last post, I covered using guards with Erlang's ETS select/2 functionality. However, what if you're looking to select a count of the number of matches for a given pattern? Lets use select_count for that. You can use the same pattern matching I covered in my previous post. There's ...

Erlang: ETS Matching with Guards (select/2)

Friday, October 10th, 2008

Not every time we want to pull data out of an erlang ETS table is it as straightfoward as the previous example. Sometimes we want to get all values that are greater than zero, rather than just constants. We'll need to use the ets:select function, which has support for ...

Erlang: Super Basic ETS Matching Tutorial

Thursday, October 9th, 2008

I hate having to look stuff up to get examples, especially when I have to click on more than the first google link to figure things out. As a result, here's a very, very basic intro do doing matching with ETS and erlang. It's similar to a SELECT ...