* Function concatLists to concatenate a list of lists.
svn path=/nixpkgs/trunk/; revision=8219
This commit is contained in:
parent
c212318239
commit
7b7230b0e9
|
@ -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) "";
|
||||
|
|
Loading…
Reference in a new issue