lists:partition/2

Samuel Tardieu <>
Wed Jan 17 16:02:31 CET 2001


On 17/01, Daniel Neri wrote:
| 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:

and `join' in Perl and many other languages.





More information about the erlang-questions mailing list