scicloj / clojisr

Clojure speaks statistics - a bridge between Clojure to R
https://scicloj.github.io/clojisr/
Eclipse Public License 2.0
147 stars 9 forks source link

(something) form #61

Closed genmeblog closed 3 years ago

genmeblog commented 4 years ago

Sometimes form should be wrapped into parantheses. We need to have a ability to emit (something).

genmeblog commented 4 years ago

also wrap into {} is necessary

genmeblog commented 3 years ago

To wrap into () use quoting:

'(a) -> "(a)"

To wrap into {} just use do form

Fixed in BETA12

genmeblog commented 3 years ago

quoting was the wrong choice, there is quote function in R, need to provide different solution.

genmeblog commented 3 years ago

Ok, to wrap into parentheses, :!wrap can be used at the beginning of list/vector.

'(:!wrap a) -> (a)