fix: add <, >, <=, >= comparison operators to clojure.core

Root cause of bmn-assoc failure: < operator missing from core-bindings.
All loop conditions in HAMT hash map use (< i idx) which silently
failed, causing loops to return nil. Added core-<, core->, core-<=,
core->= bound to Janet's <, >, <=, >=.

Also removed leftover test files from debugging session.
This commit is contained in:
Yogthos 2026-06-02 12:55:16 -04:00
parent 5052e391da
commit 2068f6e9f2
2 changed files with 10 additions and 1 deletions

View file

@ -87,6 +87,11 @@
(defn core-not= [& args] (not (apply core-= args)))
(defn core-< [a b] (< a b))
(defn core-> [a b] (> a b))
(defn core-<= [a b] (<= a b))
(defn core->= [a b] (>= a b))
# ============================================================
# Collections
# ============================================================
@ -978,6 +983,10 @@
"min" core-min
"=" core-=
"not=" core-not=
"<" core-<
">" core->
"<=" core-<=
">=" core->=
"conj" core-conj
"assoc" core-assoc
"dissoc" core-dissoc