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
486 B
Plaintext
Raw Normal View History

2022-04-03 03:07:25 -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
2022-03-15 19:36:39 -05:00
fun main: void = do
66
|> foo(_)
|> bar(_, 1)
|> baz(1, 2, _)
|> qux(_)
|> quux(1, _)
2022-04-03 03:07:25 -05:00
|> @write(_)
210
|> bar(_, _)
2022-04-03 03:07:25 -05:00
|> @write(_)
end