[erlang-questions] removing an element from a list

Ahmed Omar <>
Tue May 3 11:26:39 CEST 2011

* 2nd case (removing several elements, i.e subtracting lists) you need to be
careful, if your lists are huge you wanna consider using sets

On Tue, May 3, 2011 at 11:15 AM, Mazen Harake <>wrote:

> The simple answer is: They are almost the same. if you only want to remove
> 1 element the list then use delete, if you want to remove several then use
> subtract.

Best Regards,
- Ahmed Omar
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110503/c1c15850/attachment.html>

More information about the erlang-questions mailing list