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

15 lines
228 B
Plaintext
Raw Normal View History

2022-04-09 08:52:00 -05:00
fun mul (foo: int) (bar: int) : int = foo * bar
fun map
(fn: |int, int| -> int)
(to: int)
: int
= fn(to, 10)
2022-04-07 03:21:29 -05:00
fun main: void = do
2022-04-09 08:52:00 -05:00
let foo : int = 69
let bar : int = 10
map(mul, foo)
|> @write(_)
end