• (->ArrayChunk am arr off end)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/gvec.clj:34 top

(deftype ArrayChunk [^clojure.core.ArrayManager am arr ^int off ^int end]
  (nth [_ i] (.aget am arr (+ off i)))
  (count [_] (- end off))

  (dropFirst [_]
    (if (= off end)
      (throw (IllegalStateException. "dropFirst of empty chunk"))
      (new ArrayChunk am arr (inc off) end)))
  (reduce [_ f init]
    (loop [ret init i off]
      (if (< i end)
        (recur (f ret (.aget am arr i)) (inc i))
Vars in clojure.core/->ArrayChunk:
Used in 0 other vars

Comments top

No comments for ->ArrayChunk. Log in to add a comment.