diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-08 14:53:23 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-08 14:53:23 -0400 |
| commit | e32c4b377b56d7b23047b44cf8cc95726d4d81ef (patch) | |
| tree | 387d7e12a40b1f299c702278c4ab5b918dead5a7 | |
| parent | 8338012cabe4f042e6b21d4b06eca6193ed48908 (diff) | |
use destructuring syntax for namespaces
| -rw-r--r-- | ack.kpl | 2 | ||||
| -rw-r--r-- | fib.kpl | 2 | ||||
| -rw-r--r-- | fib_import.kpl | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -21,7 +21,7 @@ ) `is_main Fn $ ( - ( args ) `use "sys" + `use "sys" [args] ? 4 != `length args { `return `error String $ ( "#BOLD#RED#Got: %#\n" `format " " `join args @@ -26,7 +26,7 @@ ) `is_main Fn $ ( - ( args ) `use "sys" + `use "sys" [args] ? 3 != `length args { `return `error String $ ( "#BOLD#RED#Got: %#\n" `format " " `join args diff --git a/fib_import.kpl b/fib_import.kpl index 599204f..75bfe48 100644 --- a/fib_import.kpl +++ b/fib_import.kpl @@ -1,8 +1,8 @@ // Import and run fib_string function -( write; stdout ) `use "io" -( fib_string ) `import "./fib.kpl" +`use "io" [write; stdout] +`import "./fib.kpl" [fib_string] @ 0 .. 30 {[n] write `sync (stdout; fib_string `sync n) |
