Answers for "how to use clojure cond"

0

how to use clojure cond

(ns clojure.examples.hello
   (:gen-class))

;; This program displays Hello World
(defn Example []
   (def x 5)
   (cond
      (= x 5) (println "x is 5")
      (= x 10)(println "x is 10")
      :else (println "x is not defined")))
(Example)
Posted by: Guest on January-22-2021

Code answers related to "how to use clojure cond"

Browse Popular Code Answers by Language