mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +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.
|
||||
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.,
|
||||
|
|
Loading…
Reference in a new issue