diff options
Diffstat (limited to 'ack.kpl')
| -rw-r--r-- | ack.kpl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 $ ( |
