Advanced ETS Pattern Matching

Eric Newhuis <>
Tue Jan 7 15:42:02 CET 2003

How can I convert a given list like [a,b] into a match specification
like [a,b|'_'] to pass to ets?  i.e. I may conditionally want to employ
the use of |'_' in the match spec.

I see that Erlang treats this as a literal:  [a,b|'_']

But how can I construct it from its constituents a, b, and |'_'  ?


More information about the erlang-questions mailing list