[newbie] refactor function?

Bengt Kleberg bengt.kleberg@REDACTED
Wed Feb 2 12:49:03 CET 2005


Gaspar Chilingarov wrote:
...deleted
> in case of joining single element to list
> 
> 
> [ Element | List ] is equal to [ Element ] ++ List
> but [ List | Element ] creates nested list instead of
> List ++ [ Element ]

[ List | Element ] does not create a ''proper'' list.

you can not add an item to the end of a list.
++ appends 2 lists. you can not use it on items.


bengt



More information about the erlang-questions mailing list