(add-var-scope body)
Takes body, and for every (var sym value) forms, which we call var-initialization forms, it'll nest all forms that come after it inside our ->var-initialization generating form.
'((println 100) (var i 10) (+ i i))
becomes:
(var-assignment-and-access (println 100) (let [i 10] (var-initialization i (var-assignment-and-access (+ i i)))))
Takes body, and for every (var sym value) forms, which we call var-initialization forms, it'll nest all forms that come after it inside our ->var-initialization generating form. '((println 100) (var i 10) (+ i i)) becomes: (var-assignment-and-access (println 100) (let [i 10] (var-initialization i (var-assignment-and-access (+ i i)))))
(object-array2 _size init-value)
Creates an array of objects of size 1 with value as init-value. We use this because object-array differs in signature to all other typed array constructors, so we provide an object-array2 that follows the same pattern of [size init-val]
Creates an array of objects of size 1 with value as init-value. We use this because object-array differs in signature to all other typed array constructors, so we provide an object-array2 that follows the same pattern of [size init-val]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close