1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-29 00:23:18 +00:00

nitpick performance tweak

This commit is contained in:
primo-ppcg 2023-06-08 23:57:07 +07:00
parent 5317edc65d
commit 70b2e8179d

View File

@ -1134,7 +1134,7 @@
(cond (cond
(<= 0 n len) (f ind n) (<= 0 n len) (f ind n)
(< (- len) n 0) (f ind 0 (+ len n)) (< (- len) n 0) (f ind 0 (+ len n))
(f ind 0 0))) (f ind len)))
(defn- drop-n-dict (defn- drop-n-dict
[f n ind] [f n ind]