CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
1
Task/Compound-data-type/Clojure/compound-data-type-1.clj
Normal file
1
Task/Compound-data-type/Clojure/compound-data-type-1.clj
Normal file
|
|
@ -0,0 +1 @@
|
|||
(defrecord Point [x y])
|
||||
3
Task/Compound-data-type/Clojure/compound-data-type-2.clj
Normal file
3
Task/Compound-data-type/Clojure/compound-data-type-2.clj
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(def p (Point. 0 1))
|
||||
(assert (= 0 (:x p)))
|
||||
(assert (= 1 (:y p)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue