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
19 test1 :: forall n. (Num n) => n -> n -> (n -> n -> n) -> n
20 test1 x y z = x * y + z x y
22 test2 = (\x -> x.foo false) { foo : \_ -> 1 }
24 test3 = (\x y -> x)(1 + 2 * (1 + 2)) (true && (false || false))
32 (%%) :: Number -> Number -> Number
37 test6 = ((\x -> x) `k` 2) 3
39 (<>) = \s1 s2 -> s1 ++ s2
41 test7 = "Hello" <> "World!"
43 test9 = Operators1.foo Operators1.@@ "Hello World"
45 test10 = "Hello" `Operators1.bar` "World"
47 (...) :: forall a. [a] -> [a] -> [a]
48 (...) = \as -> \bs -> as
50 test11 = [1, 2, 3] ... [4, 5, 6]
52 test12 (<%>) a b = a <%> b
54 test13 = \(<%>) a b -> a <%> b
68 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