Vectors have been bothering me for a while. It seems that a vector is no
different than a stream… Particular blocks just interpret the stream
by taking every “n” numbers to be a vector?
If vectors are different, how would a block that expects a stream input
handle a vector input? And vice-versa?
On Fri, Feb 02, 2007 at 07:00:23PM -0500, Josh B. wrote:
Vectors have been bothering me for a while. It seems that a vector is no
different than a stream… Particular blocks just interpret the stream
by taking every “n” numbers to be a vector?
Yes.
If vectors are different, how would a block that expects a stream input
handle a vector input? And vice-versa?
You could think of a stream of X as a stream of vectors of X of
length 1.
If it’s still not clear, please ask again.
Eric
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.