git.iko.soy
/
typeable/nixpkgs
readme
files
commits
refs
on
master
help
sign in
lib.lists: fix fold example
1ab408e
Domen Kožar
11 years ago
lib/lists.nix
+1
−1
compare with master
unified
split
@@ -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
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list