* Function concatMapStrings.

svn path=/nixpkgs/trunk/; revision=10681
This commit is contained in:
Eelco Dolstra 2008-02-14 13:16:22 +00:00
parent ec88df39cc
commit 3be8e7c28e
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ rec {
# Map and concatenate the result.
concatMap = f: list: concatLists (map f list);
concatMapStrings = f: list: pkgs.lib.concatStrings (map f list);
# Place an element between each element of a list, e.g.,
# `intersperse "," ["a" "b" "c"]' returns ["a" "," "b" "," "c"].