(ns clojure.examples.example (:gen-class)) (defn Example [] (defstruct Employee :EmployeeName :Employeeid) (def emp (struct-map Employee :EmployeeName "John" :Employeeid 1)) (def newemp (assoc emp :EmployeeRank "A")) (println newemp)) (Example)
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more