core: move nfirst to the Clojure overlay

Same leaf-fn migration as ffirst/fnext/nnext. Full suite green, battery 3913.
This commit is contained in:
Yogthos 2026-06-06 11:49:09 -04:00
parent 30a308f3ef
commit c8810ee4aa
3 changed files with 3 additions and 3 deletions

View file

@ -81,6 +81,7 @@
(let [ctx (init opts)]
(defn ev [s] (normalize-pvecs (eval-one ctx (parse-string s))))
(assert (= 1 (ev "(ffirst [[1 2] [3 4]])")) "ffirst")
(assert (= [2] (ev "(nfirst [[1 2] [3 4]])")) "nfirst")
(assert (= 2 (ev "(fnext [1 2 3])")) "fnext")
(assert (= [3 4] (ev "(nnext [1 2 3 4])")) "nnext")))