MCPcopy Index your code
hub / github.com/clojure/clojure / seqToTypedArray

Method seqToTypedArray

src/jvm/clojure/lang/RT.java:1765–1768  ·  view source on GitHub ↗
(ISeq seq)

Source from the content-addressed store, hash-verified

1763 }
1764
1765static public Object seqToTypedArray(ISeq seq) {
1766 Class type = (seq != null && seq.first() != null) ? seq.first().getClass() : Object.class;
1767 return seqToTypedArray(type, seq);
1768}
1769
1770static public Object seqToTypedArray(Class type, ISeq seq) {
1771 Object ret = Array.newInstance(type, length(seq));

Callers

nothing calls this directly

Calls 10

lengthMethod · 0.95
intCastMethod · 0.95
byteCastMethod · 0.95
floatCastMethod · 0.95
shortCastMethod · 0.95
charCastMethod · 0.95
newInstanceMethod · 0.80
firstMethod · 0.65
nextMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected