ys::clj — Replaced Clojure Functions
A number of standard functions from Clojure's standard library clojure::core
have been replaced by functions in the ys::std
library. In general the replacements have the same intent as the original functions, but from a YAMLScript perspective.
When you absolutely need the original Clojure functions, they are available in this ys::clj
library. These functions are automatically available in YAMLSCript by using the clj/
prefix.
Functions
The documentation for these functions is available in the Clojure documentation web site, so we include a link to there in each definition.
clj/compile
— In Clojure thecompile
function compiles a namespace into a set of class files. In YAMLScript it converts a YAMLScript source code string into a Clojure source code string.clj/load
— In Clojure theload
function loads a file from the classpath. In YAMLScript it's an alias forload-file
(below).clj/load-file
— In Clojure theload-file
function loads a Clojure file from a given file path. In YAMLScript it loads a YAMLScript file from a given file path.clj/num
— In Clojure thenum
function converts a Java number to a Clojure number. In YAMLScript it converts a numeric string to a number.clj/use
— In Clojure theuse
function is used to refer a namespace into the current namespace. In YAMLScript it loads a YAMLScript or Clojure library fromYSPATH
.