lists:partition/2

Daniel Neri <>
Wed Jan 17 15:43:31 CET 2001


Luke Gorrie <> 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:

    http://www.haskell.org/onlinelibrary/list.html


Regards,
   ---Daniel

PS. BTW, could we please drop the plural `s' from `lists', `sets' and
    `ordsets'?

-- 
Daniel Neri                                      mailto:
Sigicom AB, Sweden                              http://www.sigicom.com




More information about the erlang-questions mailing list