lists:partition/2

Luke Gorrie luke@REDACTED
Wed Jan 17 17:12:18 CET 2001


Samuel Tardieu <sam@REDACTED> writes:

> On 17/01, Daniel Neri wrote:
> | Luke Gorrie <luke@REDACTED> writes:
> | 
> | >   %% separate(X, L):
> | >   %% Separate the elements of the list L by placing X between them.
> | 
> | This one is called `intersperse' in the Haskell library, which could
> | maybe also serve as inspiration for other additions to the lists
> | module:
> 
> and `join' in Perl and many other languages.

There is something fun about different people deciding on the names
"separate" and "join" for the same function. :-)

Cheers,
Luke




More information about the erlang-questions mailing list