3zipWith :: forall a b c. (a -> b -> c) -> [a] -> [b] -> [c]
6zipWith f (x:xs) (y:ys) = f x y : zipWith f xs ys
8test1 = [1, 2, 3] `zipWith (+)` [4, 5, 6]
10comparing :: forall a b. (Ord b) => (a -> b) -> a -> a -> Ordering
11comparing f = compare `Data.Function.on` f
14sum (x:xs) = x + sum xs
16test2 = [1, 2, 3] `comparing sum` [4, 5, 6]
19 Debug.Trace.print test1
20 Debug.Trace.print test2
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