YAMLScript YAMLScript Library
This library serves 2 purposes. It provides functions for working with YAMLScript code from within a YAMLScript program/file.
It also provides functions that are wrappers around common Clojure functions so that they can be used in places where functions are not allowed; like in dot chaining operations.
You can use these functions with the ys/
(or ys::ys/
) prefix.
YAMLScript Functions
compile
— Compile a YAMLScript string to a Clojure stringeval
— Evaluate a YAMLScript stringload-file
— Load a YAMLScript file pathload-pod
— Load a Babashka Podunload-pods
— Unload all loaded podsuse
— Use a YAMLScript or Clojure library found inYSPATH
. Normally called asuse
, notys/use
.
Macro Wrapper Functions
for
— An eager version of Clojure's lazyfor
macroif
— Wrapper around the Clojureif
special formwhen
— Wrapper around the Clojurewhen
macro