Matching and deleting items in list of tuples

Posted by Sappe on Stack Overflow See other posts from Stack Overflow or by Sappe
Published on 2010-04-06T22:16:55Z Indexed on 2010/04/06 22:53 UTC
Read the original article Hit count: 152

Filed under:
|
|
|

I have a list of tuples, say [{x, a, y}, {x, b, y}].

Is there a built-in function (or can I use a combination of BIFs) to delete all tuples matching {x, _, y}, as in match and delete based on the first and third term in the tuples, ignoring the second?

© Stack Overflow or respective owner

Related posts about erlang

Related posts about lists