summaryrefslogtreecommitdiff
path: root/ack.kpl
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-06-09 10:32:54 -0400
committernodist <kevin.comas.git@gmail.com>2026-06-09 10:32:54 -0400
commita46670f5100e6ac5e39e52d2168b754e9d614bca (patch)
tree4c625bd843457730cca02daa07ce9f53ca5ac5de /ack.kpl
parente32c4b377b56d7b23047b44cf8cc95726d4d81ef (diff)
inline fn defs
Diffstat (limited to 'ack.kpl')
-rw-r--r--ack.kpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/ack.kpl b/ack.kpl
index 3aa6c1d..2161836 100644
--- a/ack.kpl
+++ b/ack.kpl
@@ -1,7 +1,7 @@
// Ackermann function
-`export ack : Fn[m; n] $ (
+`export ack : ([m; n]
t : `type m;
? t != `type n {
`panic "m and n must be the same type"
@@ -16,11 +16,11 @@
}
)
-`export ack_string : Fn[m; n] $ (
+`export ack_string : ([m; n]
"#MAGENTA#ack#(#CYAN#%#, #CYAN#%#) #WHITE#=# #GREEN#%#\n" `format (m; n; ack `sync (m; n))
)
-`is_main Fn $ (
+`is_main ([]
`use "sys" [args]
? 4 != `length args {
`return `error String $ (