4fun twice(f, x) = f(f(x))
6fun map(f, xs) = case xs of {
8 | Cons(y, ys) => Cons(f(y), map(f, ys))
11fun dumpList(xs) = case xs of {
13 | Cons(y, ys) => %IntString(y) ++ ", " ++ dumpList(ys)
16fun countFrom(x) = Cons(x, countFrom@(x+1))
18fun take(n, xs) = case n of {
22 | Cons(y, ys) => Cons(y, take(n-1, ys))
28fun main() = let mult = 2 in
29 %WriteString(dumpList(map(twice(\ x => x*mult), take(1010, countFrom(10)))))
keysesc 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