concatImapStrings
lib.strings.concatImapStrings
Docs pulled from | This Revision | about 1 hour ago
Like concatMapStrings
except that the f functions also gets the
position as a parameter.
Inputs
f
- 1. Function argument
list
- 2. Function argument
Type
concatImapStrings :: (int -> a -> string) -> [a] -> string
Examples
lib.strings.concatImapStrings
usage example
concatImapStrings (pos: x: "${toString pos}-${x}") ["foo" "bar"]
=> "1-foo2-bar"
Noogle detected
Implementation
The following is the current implementation of this function.
concatImapStrings = f: list: concatStrings (lib.imap1 f list);