* Function concatLists to concatenate a list of lists.

svn path=/nixpkgs/trunk/; revision=8219
This commit is contained in:
Eelco Dolstra 2007-03-06 00:01:27 +00:00
parent c212318239
commit 7b7230b0e9

View file

@ -19,6 +19,11 @@ rec {
else op (head list) (fold op nul (tail list));
# Concatenate a list of lists.
concatLists =
fold (x: y: x ++ y) [];
# Concatenate a list of strings.
concatStrings =
fold (x: y: x + y) "";