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.
7 lines
220 B
Plaintext
7 lines
220 B
Plaintext
;; A plain `declare` names a C symbol in a signature Flan can already spell:
|
|
;; no aggregate crosses, so no wrapper is generated.
|
|
(declare cos-f64 [x f64] f64 "cos")
|
|
|
|
(defn main []
|
|
(print-f64 (cos-f64 0.0)) (newline))
|