flan/test/programs/pkg-private.flan

11 lines
334 B
Plaintext

;;;; A package's private function, used from inside the package: from the
;;;; file that declares it, from the package's other file, and as a value.
(import secret "pkgs/secret")
(defn main [] i32
(print (secret/combine 1 2)) (println "")
(print (secret/twice 3)) (println "")
(print (secret/via-value 4 5)) (println "")
0)