diff options
| author | unwox <me@unwox.com> | 2024-09-26 17:46:38 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-09-26 17:46:38 +0600 |
| commit | 9b82db238f9e2e02a76f95c793f8d6ef2387ecfd (patch) | |
| tree | cdb2a16d01f09553b560ab1034d53392d07bae42 /lib/array.fnl | |
init
Diffstat (limited to 'lib/array.fnl')
| -rw-r--r-- | lib/array.fnl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/array.fnl b/lib/array.fnl new file mode 100644 index 0000000..11e4d2a --- /dev/null +++ b/lib/array.fnl @@ -0,0 +1,13 @@ +(import-macros {: reduce} :lib.macro) + +(fn concat [a b] + (local copy + (fn [a b] + (reduce + (fn [_ v c] + (table.insert c v) + c) + b a))) + (copy a b)) + +{: concat} |
