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
|
@ -95,7 +95,7 @@ rec {
|
||||||
result with the specified separator interspersed between
|
result with the specified separator interspersed between
|
||||||
elements.
|
elements.
|
||||||
|
|
||||||
Type: concatMapStringsSep :: string -> (string -> string) -> [string] -> string
|
Type: concatMapStringsSep :: string -> (a -> string) -> [a] -> string
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
concatMapStringsSep "-" (x: toUpper x) ["foo" "bar" "baz"]
|
concatMapStringsSep "-" (x: toUpper x) ["foo" "bar" "baz"]
|
||||||
|
@ -112,7 +112,7 @@ rec {
|
||||||
/* Same as `concatMapStringsSep`, but the mapping function
|
/* Same as `concatMapStringsSep`, but the mapping function
|
||||||
additionally receives the position of its argument.
|
additionally receives the position of its argument.
|
||||||
|
|
||||||
Type: concatIMapStringsSep :: string -> (int -> string -> string) -> [string] -> string
|
Type: concatIMapStringsSep :: string -> (int -> a -> string) -> [a] -> string
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
concatImapStringsSep "-" (pos: x: toString (x / pos)) [ 6 6 6 ]
|
concatImapStringsSep "-" (pos: x: toString (x / pos)) [ 6 6 6 ]
|
||||||
|
|
Loading…
Reference in a new issue