summaryrefslogtreecommitdiff
path: root/fib.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 /fib.kpl
parente32c4b377b56d7b23047b44cf8cc95726d4d81ef (diff)
inline fn defs
Diffstat (limited to 'fib.kpl')
-rw-r--r--fib.kpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/fib.kpl b/fib.kpl
index 18d074c..314dc83 100644
--- a/fib.kpl
+++ b/fib.kpl
@@ -4,7 +4,7 @@
n can be any numeric type
*/
-`export fib : Fn[n] $ (
+`export fib : ([x]
t : `type n
? {
|(t = Int_signed; t = Float) {
@@ -21,11 +21,11 @@
}
)
-`export fib_string Fn[n] $ (
+`export fib_string : ([n]
"#MAGENTA#fib#(#CYAN#%#) #WHITE#=# #GREEN#%#\n" `format (n; fib `sync n)
)
-`is_main Fn $ (
+`is_main ([]
`use "sys" [args]
? 3 != `length args {
`return `error String $ (