Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 24, 2018
1 parent f4e696b commit 119cb52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()`
Expand Down

0 comments on commit 119cb52

Please sign in to comment.