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

14 lines
269 B
Plaintext
Raw Normal View History

2022-03-12 16:00:42 -06:00
fun foo (xs: int): int = return xs + 1;
fun bar (xs: int) (x: int): int = return xs - x;
fun main: int = do
let res: int = foo(69)
2022-03-12 16:38:39 -06:00
|> bar(1);
2022-03-12 16:00:42 -06:00
@write(res);
2022-03-12 16:03:00 -06:00
@write("\n");
2022-03-12 16:38:39 -06:00
let y: int = 68
|> foo();
2022-03-12 16:03:00 -06:00
@write(y);
2022-03-12 16:00:42 -06:00
end;