[erlang-questions] list:join() for erlang?
Peter K Chan
Wed Sep 12 18:26:15 CEST 2007
Sorry that I made an omission.
I was referring to the variant of join which takes a separator. For example: lists:join("abc", "/"), which evaluates to "a/b/c".
Do you know if something like this exists in the distribution?
From: igwan [mailto:igwan@REDACTED]
Sent: Wednesday, September 12, 2007 11:19 AM
To: Peter K Chan
Subject: Re: [erlang-questions] list:join() for erlang?
It does exist :
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
More information about the erlang-questions