forked from mirrors/nixpkgs
lib.lists: fix fold example
This commit is contained in:
parent
467cd6f3a4
commit
1ab408e1da
|
@ -24,7 +24,7 @@ rec {
|
|||
Example:
|
||||
concat = fold (a: b: a + b) "z"
|
||||
concat [ "a" "b" "c" ]
|
||||
=> "abcnul"
|
||||
=> "abcz"
|
||||
*/
|
||||
fold = op: nul: list:
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue