match List1 in List2

Vance Shipley vances@REDACTED
Wed Sep 18 10:04:48 CEST 2002


What would be the best way to return the list of tuples
in List1 which match the tuples in List2?

List1 = [{foo, 13}, {bar, 42}, {fooz, 67}]
List2 = [{baz, 15}, {booz, 145}, .....]

It seems to me that this should be a one liner but I've
not found the simple solution yet.

	-Vance



More information about the erlang-questions mailing list