diff options
| author | unwox <me@unwox.com> | 2024-10-15 14:48:16 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-10-15 14:49:36 +0600 |
| commit | 1204496efa2fcd495bd74ba8ca249b7f082f3ba5 (patch) | |
| tree | 57f908c7bae9ff1194ccb68328ec59ef5be00872 /lib/array.fnl | |
| parent | 1520d83acccdcad2d7f87aec073b48d5f4995bf6 (diff) | |
WIP try to fix spelling mistakes in search querie
currently works very slowly and uses a lot of CPU
Diffstat (limited to 'lib/array.fnl')
| -rw-r--r-- | lib/array.fnl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/array.fnl b/lib/array.fnl index 6dc0780..8b81c5c 100644 --- a/lib/array.fnl +++ b/lib/array.fnl @@ -1,5 +1,9 @@ (import-macros {: reduce} :lib.macro) +(fn sort [a less-fn] + (table.sort a less-fn) + a) + (fn concat [a b] (local copy (fn [a b] @@ -51,4 +55,4 @@ (local join table.concat) -{: concat : diff : unique : flatten : join : contains} +{: sort : concat : diff : unique : flatten : join : contains} |
