clj-commons / byte-streams

A Rosetta stone for JVM byte representations
417 stars 33 forks source link

to-input-stream not lazy on lazy seqs #21

Closed happy-lisper closed 8 years ago

happy-lisper commented 8 years ago

Contrary to the https://raw.githubusercontent.com/ztellman/byte-streams/0.2.0/README.md#L37

=> (to-input-stream (repeat "hello"))

OutOfMemoryError Requested array size exceeds VM limit  java.util.Arrays.copyOf (Arrays.java:3332)

is not lazy.

ztellman commented 8 years ago

Thank you for catching this, it should be fixed now in the latest alpha release.