Advanced ETS Pattern Matching

Erik Reitsma (ELN) Erik.Reitsma@REDACTED
Tue Jan 7 15:48:13 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.

Is this what you mean?

Eshell V5.2  (abort with ^G)
1> L=[a,b].
[a,b]
2> L++'_'.
[a,b|'_']

Regards,
*Erik.



More information about the erlang-questions mailing list