mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
15 lines
450 B
Plaintext
15 lines
450 B
Plaintext
|
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(_);
|
||
|
end;
|