What is the BIF to remove an item from a list?
相关问题
- Is “new” in Erlang part of the official standard a
- how to create a keep-alive process in Erlang
- ejabberd and Erlang installation with lager_transf
- Encrypt (cryptojs) - Decrypt (erlang)
- How to use erlang-examples
相关文章
- How do I modify a record in erlang?
- Check active timers in Erlang
- undefined function maps:to_json/1
- How to convert datetime() to timestamp() in Erlang
- what good orm api will work well with scala or erl
- GC performance in Erlang
- When to “let it crash” and when to defend the code
- Intercept login/logout ejabberd
NewList = CurrentList -- Element
whenElement
is a liste.g.
NewList = CurrentList -- [{some_element}]
If you want to remove a given element, it is lists:delete/2 (which is not a BIF).
If you want to remove an element at a given position, you can do something like:
If you want to remove all occurences, then: