about summary refs log tree commit diff stats
path: root/js/baba-yaga/docs
diff options
context:
space:
mode:
Diffstat (limited to 'js/baba-yaga/docs')
-rw-r--r--js/baba-yaga/docs/ref.txt18
1 files changed, 16 insertions, 2 deletions
diff --git a/js/baba-yaga/docs/ref.txt b/js/baba-yaga/docs/ref.txt
index 40a7519..88320fe 100644
--- a/js/baba-yaga/docs/ref.txt
+++ b/js/baba-yaga/docs/ref.txt
@@ -143,7 +143,7 @@ FUNCTION COMBINATORS
 flip f                          // λx y. f y x
 apply f x                       // f x  
 pipe x f                        // f x (reverse apply)
-compose f g                     // λx. f (g x)
+compose f g                     // λx. f (g x) (binary compose)
 
 VALIDATION & DEBUG
 ------------------
@@ -156,13 +156,27 @@ validate.email x                // x is valid email
 // Debugging
 debug.print [name] value        // print with optional name
 debug.inspect x                 // detailed inspection
-assert condition message       // throw if condition false
+assert condition message        // throw if condition false
 
 I/O
 ---
 io.out value                    // print value
 io.in                           // read stdin
 
+JAVASCRIPT INTEROP
+------------------
+io.callJS fnName args           // call JS function synchronously
+io.callJSAsync fnName args      // call JS function asynchronously
+io.getProperty obj propName     // get JS object property
+io.setProperty obj propName val // set JS object property
+io.hasProperty obj propName     // check if JS property exists
+io.jsArrayToList jsArray        // convert JS array to Baba Yaga list
+io.listToJSArray list           // convert Baba Yaga list to JS array
+io.objectToTable jsObj          // convert JS object to Baba Yaga table
+io.tableToObject table          // convert Baba Yaga table to JS object
+io.getLastJSError               // get last JS error (if available)
+io.clearJSError                 // clear last JS error (if available)
+
 EXAMPLES
 --------
 // Fibonacci