mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
15 lines
228 B
Plaintext
15 lines
228 B
Plaintext
fun mul (foo: int) (bar: int) : int = foo * bar
|
|
fun map
|
|
(fn: |int, int| -> int)
|
|
(to: int)
|
|
: int
|
|
= fn(to, 10)
|
|
|
|
fun main: void = do
|
|
let foo : int = 69
|
|
let bar : int = 10
|
|
|
|
map(mul, foo)
|
|
|> @write(_)
|
|
end
|