5 isort : List a -> List a
7 isort (x :: xs) = insert x (isort xs)
8 where -- insert : a -> List a -> List a
10 insert x (y :: ys) = if x < y then x :: y :: ys
13 msum : Num n => List n -> n
15 msum (x :: xs) = x + msum xs
19 mprod (x :: xs) = x * mprod xs
22main = do print $ isort [1,5,3,5,1,9,8]
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