[erlang-questions] removing an element from a list
Ahmed Omar
spawn.think@REDACTED
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
http://www.erlang.org/doc/efficiency_guide/commoncaveats.html#id59266
On Tue, May 3, 2011 at 11:15 AM, Mazen Harake <mazen.harake@REDACTED>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
http://nl.linkedin.com/in/adiaa
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.htm>
More information about the erlang-questions
mailing list