Module elists

Extra lists functions.

Copyright © 2009 Mr Buzz, Inc.

Authors: Jacob Perkins.

Description

Extra lists functions.

Function Index

mapfilter/2Combines map and filter into 1 operation.
prepend/2Equivalent to [Elem | List].
splitmany/2Split List into many lists, each with N elements.

Function Details

mapfilter/2

mapfilter(F::function(), List::list()) -> list()

Combines map and filter into 1 operation. Like map, calls F on each item in List. But if F returns false, then the result is dropped.

prepend/2

prepend() -> term()

Equivalent to [Elem | List].

splitmany/2

splitmany(N::integer(), List::list()) -> [list()]

Split List into many lists, each with N elements. The last list may contain less than N elements.


Generated by EDoc, Jul 14 2009, 14:06:01.