query
On this page

concatImapStrings

lib.strings.concatImapStrings

Docs pulled from | This Revision | about 9 hours 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 also knows

Aliases