Merge pull request #23 from zmthy/deque-reflection-warnings
Resolve reflection warnings on ArrayDeque
This commit is contained in:
commit
c65e766395
1 changed files with 4 additions and 4 deletions
|
|
@ -387,7 +387,7 @@
|
|||
(if (fn? step-or-xform)
|
||||
(partition n n step-or-xform)
|
||||
(partition n step-or-xform (into []))))
|
||||
([n step pad-or-xform]
|
||||
([^long n step pad-or-xform]
|
||||
(if (fn? pad-or-xform)
|
||||
(let [xform pad-or-xform]
|
||||
(fn [rf]
|
||||
|
|
@ -409,7 +409,7 @@
|
|||
acc)
|
||||
acc)))))))
|
||||
(partition n step pad-or-xform (into []))))
|
||||
([n step pad xform]
|
||||
([^long n step pad xform]
|
||||
(fn [rf]
|
||||
(let [mxrf (multiplexable rf)
|
||||
dq (java.util.ArrayDeque. n)
|
||||
|
|
@ -440,7 +440,7 @@
|
|||
(fn [rf]
|
||||
(let )))
|
||||
|
||||
(defn take-last [n]
|
||||
(defn take-last [^long n]
|
||||
(fn [rf]
|
||||
(let [dq (java.util.ArrayDeque. n)]
|
||||
(fn
|
||||
|
|
@ -453,7 +453,7 @@
|
|||
|
||||
(defn drop-last
|
||||
([] (drop-last 1))
|
||||
([n]
|
||||
([^long n]
|
||||
(fn [rf]
|
||||
(let [dq (java.util.ArrayDeque. n)
|
||||
xform (map #(if (identical? dq %) nil %))
|
||||
|
|
|
|||
Loading…
Reference in a new issue