diff options
| author | Andrey Listopadov <andreyorst@gmail.com> | 2021-03-16 22:31:20 +0300 |
|---|---|---|
| committer | Andrey Listopadov <andreyorst@gmail.com> | 2021-03-16 22:31:20 +0300 |
| commit | 54294f7c864b9597c3775793015f600b1022594f (patch) | |
| tree | 2e11c6841e139cc6e6e5844f2e328721e64fc813 /init.fnl | |
| parent | afbd1f1c31299ef9e2040b41fce7a8546fce618d (diff) | |
fix: more portable conj
Should now work on luajit
Diffstat (limited to 'init.fnl')
| -rw-r--r-- | init.fnl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -549,7 +549,7 @@ See `hash-map' for creating empty associative tables." (let [tbl (or tbl (empty []))] (if (map? tbl) (tset tbl (. x 1) (. x 2)) - (insert tbl x)))) + (tset tbl (+ 1 (length tbl)) x)))) tbl) ([tbl x & xs] (apply conj (conj tbl x) xs))) |