Carp/examples/copying.carp

10 lines
165 B
Plaintext
Raw Normal View History

2017-09-05 12:43:33 +03:00
(import Array)
(deftype C [a String
b (Array Int)])
2017-09-05 14:49:53 +03:00
(defn main []
(let [c1 (C.init "Hej" [1 2 3])
c2 (C.copy &c1)]
(IO.println &"OK.")))