mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
* 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 New Issue
Block a user