If the variables are immutable in Clojure, then why did it allow to redefine the same variable in the following snippet:
(ns tutorial.test-immutability-of-variables)
(defn test_if_variables_are_mutable
[]
(def a 1)
(def a 10)
(println (format "Value of a: %d" a) )
)
(test_if_variables_are_mutable)
The above code compiles and o/p is 10.