LuKuangChen / stacker-2023

A notional machine for the SMoL languages
14 stars 0 forks source link

translation of cond is by no mean correct... #31

Closed LuKuangChen closed 2 months ago

LuKuangChen commented 2 months ago
(deffun (fact n)
  (cond
    [(= n 0)
     1]
    [else (* (fact (- n 1)) n)]))
(fact 5)
LuKuangChen commented 2 months ago

Looks fine now