5 (@@) :: forall a b. (a -> b) -> a -> b
8 foo :: String -> String
11 test8 = foo @@ "Hello World"
13 bar = \s1 s2 -> s1 ++ s2
15module Operators2 where
18 import Operators1 ((@@))
20 test1 :: forall n. (Num n) => n -> n -> (n -> n -> n) -> n
21 test1 x y z = x * y + z x y
23 test2 = (\x -> x.foo false) { foo : \_ -> 1 }
25 test3 = (\x y -> x)(1 + 2 * (1 + 2)) (true && (false || false))
33 (%%) :: Number -> Number -> Number
38 test6 = ((\x -> x) `k` 2) 3
40 (<>) = \s1 s2 -> s1 ++ s2
42 test7 = "Hello" <> "World!"
44 test9 = Operators1.foo @@ "Hello World"
46 test10 = "Hello" `Operators1.bar` "World"
48 (...) :: forall a. [a] -> [a] -> [a]
49 (...) = \as -> \bs -> as
51 test11 = [1, 2, 3] ... [4, 5, 6]
53 test12 (<%>) a b = a <%> b
55 test13 = \(<%>) a b -> a <%> b
69 print [ show $ test1 1 2 $ \x y -> x + y
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