Using ets:match outside of ets?

Shawn Pearce spearce@REDACTED
Mon Mar 3 21:07:21 CET 2003


I basically need to do something like:

	M = #some_rec{f1=Type,f2=Y,_='_'}, % MatchSpec as per ets:match
	P = #some_rec{...}, % object to test
	case match(M, P) of
		true ->
			% good;
		false ->
			% bad;
	end.

ideas?

Note that I don't have the object P in an ets table and have no desire
in registering it into an ets table for this test.  :)

-- 
Shawn.

  Q:	What's the difference between USL and the Titanic?
  A:	The Titanic had a band.



More information about the erlang-questions mailing list