strings.nix: Fix overly monomorphic type signature comments
These functions work on lists of anything, not just lists of strings.
This commit is contained in:
parent
8148ffc930
commit
5db6b909cd
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ rec {
|
|||
result with the specified separator interspersed between
|
||||
elements.
|
||||
|
||||
Type: concatMapStringsSep :: string -> (string -> string) -> [string] -> string
|
||||
Type: concatMapStringsSep :: string -> (a -> string) -> [a] -> string
|
||||
|
||||
Example:
|
||||
concatMapStringsSep "-" (x: toUpper x) ["foo" "bar" "baz"]
|
||||
|
@ -112,7 +112,7 @@ rec {
|
|||
/* Same as `concatMapStringsSep`, but the mapping function
|
||||
additionally receives the position of its argument.
|
||||
|
||||
Type: concatIMapStringsSep :: string -> (int -> string -> string) -> [string] -> string
|
||||
Type: concatIMapStringsSep :: string -> (int -> a -> string) -> [a] -> string
|
||||
|
||||
Example:
|
||||
concatImapStringsSep "-" (pos: x: toString (x / pos)) [ 6 6 6 ]
|
||||
|
|
Loading…
Reference in a new issue