mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
19 lines
486 B
Plaintext
19 lines
486 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(_)
|
|
|
|
210
|
|
|> bar(_, _)
|
|
|> @write(_)
|
|
end |