ludus/janet/test.janet

8 lines
141 B
Plaintext
Raw Normal View History

2024-03-25 20:04:54 +00:00
(def myodd? nil)
(defn myeven? [x] (if (= 0 x) true (myodd? (dec x))))
(defn myodd? [x] (if (= 0 x) false (myeven? (dec x))))
(myeven? 2)