4import Control.Monad.Eff
5import Control.Monad.Eff.Console
7(?!) :: forall a. a -> a -> a
10bar :: String -> String -> String
11bar = \s1 s2 -> s1 ++ s2
13test1 :: forall n. (Num n) => n -> n -> (n -> n -> n) -> n
14test1 x y z = x * y + z x y
16test2 = (\x -> x.foo false) { foo : \_ -> 1.0 }
18test3 = (\x y -> x)(1.0 + 2.0 * (1.0 + 2.0)) (true && (false || false))
26(%%) :: Number -> Number -> Number
29test5 = 1.0 %% 2.0 %% 3.0
31test6 = ((\x -> x) `k` 2.0) 3.0
33(<+>) :: String -> String -> String
34(<+>) = \s1 s2 -> s1 ++ s2
36test7 = "Hello" <+> "World!"
38(@@) :: forall a b. (a -> b) -> a -> b
41foo :: String -> String
44test8 = foo @@ "Hello World"
46test9 = Main.foo @@ "Hello World"
48test10 = "Hello" `Main.bar` "World"
50(...) :: forall a. Array a -> Array a -> Array a
51(...) = \as -> \bs -> as
53test11 = [1.0, 2.0, 0.0] ... [4.0, 5.0, 6.0]
55test12 (<%>) a b = a <%> b
57test13 = \(<%>) a b -> a <%> b
59test14 :: Number -> Number -> Boolean
62test15 :: Number -> Number -> Boolean
63test15 a b = const false $ a `test14` b
69test18 = negate $ negate 1.0
72test19 = negate $ negate (-1.0)
80 let t1 = test1 1.0 2.0 (\x y -> x + y)
91 let t12 = test12 k 1.0 2.0
92 let t13 = test13 k 1.0 2.0
93 let t14 = test14 1.0 2.0
94 let t15 = test15 1.0 2.0
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