[CM] Confused about subvectors
Iain Duncan
iainduncanlists at gmail.com
Tue Mar 16 22:06:01 PDT 2021
Hi folks, not sure if I can't read or what, I'm trying to make subvectors
and I'm not getting at all what I'm expecting from the docs. I thought from
the s7 docs that subvector should return a vector given (subvector vector
start end), or (subvector vector start end dimensions)
If anyone can shed some light on this, that would be lovely.
iain
Here's my repl output from using the s7 repl example
> (define v (vector 1 2 3 4))
#(1 2 3 4)
> v
#(1 2 3 4)
> (subvector v 0 2)
#()
> (subvector v 0 2 1)
;subvector: too many arguments: (#(1 2 3 4) 0 2 1)
> (subvector v)
;subvector: not enough arguments: (#(1 2 3 4))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20210316/4ef474ff/attachment.html>
More information about the Cmdist
mailing list