9
我想使用condp子句,但我不知道如何捕捉任何不匹配的子句。我怎麼做?我該如何寫:Clojure中的condp中的其他內容?
(defn subst[id value W-lang]
(let [[type expr][(first W-lang)(rest W-lang)]]
(condp = type
'num (first expr)
'add expr
***** expr)))