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