Copying a snippet into HTML is where a documented language stops being the real one. Each block on the page is a program here with its recorded output beside it, and check.sh is what says the page is still true after a change.
9 lines
241 B
Plaintext
9 lines
241 B
Plaintext
;; The directory is the package. Everything it declares arrives qualified.
|
|
(import g "geom")
|
|
|
|
(defn main []
|
|
(let [v (g/add (g/V2 {:x 3.0 :y 0.0})
|
|
(g/V2 {:x 0.0 :y 4.0}))]
|
|
(print-f64 (f64 (g/length v)))
|
|
(newline)))
|