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/compileIn Clojure the compile 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/loadIn Clojure the load function loads a file from the classpath. In YAMLScript it's an alias for load-file(below).

  • clj/load-fileIn Clojure the load-file function loads a Clojure file from a given file path. In YAMLScript it loads a YAMLScript file from a given file path.

  • clj/numIn Clojure the num function converts a Java number to a Clojure number. In YAMLScript it converts a numeric string to a number.

  • clj/useIn Clojure the use function is used to refer a namespace into the current namespace. In YAMLScript it loads a YAMLScript or Clojure library from YSPATH.