summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2021-03-16 22:31:20 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2021-03-16 22:31:20 +0300
commit54294f7c864b9597c3775793015f600b1022594f (patch)
tree2e11c6841e139cc6e6e5844f2e328721e64fc813
parentafbd1f1c31299ef9e2040b41fce7a8546fce618d (diff)
fix: more portable conj
Should now work on luajit
-rw-r--r--init.fnl2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.fnl b/init.fnl
index 1b84cda..7522005 100644
--- a/init.fnl
+++ b/init.fnl
@@ -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)))