1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/example/pipe2.hz

19 lines
494 B
Plaintext
Raw Normal View History

2022-03-15 19:36:39 -05:00
fun foo (xs: int) : int = return xs + 1;
fun bar (xs: int) (ys: int) : int = return xs + ys;
fun baz (xs: int) (ys: int) (zs: int): int = return xs + ys + zs;
fun qux (xs: int) : int = return xs - 1;
fun quux (xs: int) (xy: int) : int = return xs - 2 + xy;
fun main: void = do
66
|> foo(_)
|> bar(_, 1)
|> baz(1, 2, _)
|> qux(_)
|> quux(1, _)
|> @write(_);
210
|> bar(_, _)
|> @write(_);
2022-03-15 19:36:39 -05:00
end;