git.iko.soy/typeable/nixpkgs
on master help sign in
lib.lists: fix fold example
1ab408eDomen Kožar
lib/lists.nix+1−1
@@ -24,7 +24,7 @@ rec {
24 Example:
24 Example:
25 concat = fold (a: b: a + b) "z"
25 concat = fold (a: b: a + b) "z"
26 concat [ "a" "b" "c" ]
26 concat [ "a" "b" "c" ]
27− => "abcnul"
27+ => "abcz"
28 */
28 */
29 fold = op: nul: list:
29 fold = op: nul: list:
30 let
30 let