From 119cb523fa9bf2aff6ecaff27477014ce3534fa4 Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Sat, 24 Feb 2018 12:14:58 +0100 Subject: [PATCH] Update readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ba5e401..e0a0cca1 100644 --- a/README.md +++ b/README.md @@ -137,11 +137,12 @@ presense of the element. You can execute jQuery functions ```scheme -(let* (($ (. window "$")) - (term ($ ".terminal"))) +(let* ((term ($ ".terminal"))) ((. term "css") "background" "red")) ``` +function `$` is available because it's in window object. + or operate on strings ```scheme @@ -208,7 +209,7 @@ and you can execute this macro in lips: it will return first symbol and not execute it as function foo. -if you want to create macro like quasiquote that code need to be wrapped with +if you want to create macro like quasiquote, the returned code need to be wrapped with Quote instance. When creating macros in JavaScript you can use helper `Pair.fromArray()`