[erlang-questions] list:join() for erlang?
Wed Sep 12 20:09:48 CEST 2007
> It does exist :
which is the same as lists:append/2.
lists:append/1 (append list of lists) may also be of interest, as well
as lists:flatten/1 that can be used like lists:append/1, but also to
flatten deeper list structures.
> and the corresponding syntactic sugar :
> 1> [a,b,c] ++ [d,e,f].
> Peter K Chan a écrit :
>> I looked around and I couldn't find a list:join() implementation for
>> erlang. Is this intentional? The join function seems to be a useful
>> feature to have.
>> I ended up writing my own version, which was simple enough; but it would
>> be even better if it is available as a BIF.
>> erlang-questions mailing list
> erlang-questions mailing list
More information about the erlang-questions