How to get a Stream from a Bit Vector in Common Lisp?
<p>I have a bit vector - <code>#*10010010001001...</code> </p>

<p>I'd like to use READ-BYTE to read off octets from the vector. 
But it needs a binary stream object. </p>

<p>I can't seem to figure out how to do this. I tried using WRITE-SEQUENCE to get a new stream from a simple vector (converted from bit vector):</p>

<pre><code>(WRITE-SEQUENCE (map 'array #'identity #*10010010...) *standard-output*)
</code></pre>

<p>but it complains about the expected type needing to be CHARACTER. </p>

<p>(I'm using Clozure Common Lisp.) </p>

<p>What am I doing wrong?</p>

<p>(Please don't suggest flexi-streams as an answer. I don't intend to add a whole new library for just one small thing.)</p>