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