added concatImapStrings function
svn path=/nixpkgs/trunk/; revision=28673
This commit is contained in:
parent
25fd505136
commit
e6e11e4b04
|
@ -16,6 +16,7 @@ rec {
|
||||||
|
|
||||||
# Map a function over a list and concatenate the resulting strings.
|
# Map a function over a list and concatenate the resulting strings.
|
||||||
concatMapStrings = f: list: concatStrings (map f list);
|
concatMapStrings = f: list: concatStrings (map f list);
|
||||||
|
concatImapStrings = f: list: concatStrings (lib.imap f list);
|
||||||
|
|
||||||
|
|
||||||
# Place an element between each element of a list, e.g.,
|
# Place an element between each element of a list, e.g.,
|
||||||
|
|
Loading…
Reference in a new issue