47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
let say_hi(name) = do
|
|
let z(y) = do
|
|
return y
|
|
let u = z(
|
|
do
|
|
return name
|
|
)
|
|
|
|
return "hello "+u+", how are you?"
|
|
term.log(say_hi("william")
|
|
, say_hi)
|
|
|
|
let a = 9
|
|
let b = 10
|
|
term.log(string(a)+'+'+string(b)+'='+string(a+b))
|
|
|
|
|
|
let call(f) = do
|
|
term.log(f)
|
|
|
|
return f()
|
|
|
|
|
|
term.log(
|
|
call(
|
|
()=call(
|
|
()=do
|
|
term.log('hello testing testing')
|
|
return call(
|
|
()=call(
|
|
()=do
|
|
term.log("hello this is a test of anonymous functions. hopefully this works :)")
|
|
|
|
return say_hi("test")
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
call(()=do
|
|
term.log((
|
|
(x)=x
|
|
)(
|
|
10000675435574942378423458324823473205237523053278452368578032472390453275238558438905348905894035890348905349805345485843578934268954328902589607469328905490832678934728969834689057843267854736890256743928563256749016078596789416895657435690769013674516750941765438576867893726789543789345678576846715416789058903890549045839804538905389045890435890349580348905894035890435784785236523656237985678342523678
|
|
)
|
|
)
|
|
) |