Hi Pierpaolo,<div><br></div><div>Yes, I could read the data into a list and then create an array from it:</div><div><br></div><div><div>(array-ref (apply array (shape 0 3 0 3) '(1 2 3 4 5 6 7 8 9)) 2 2)</div><div>9</div>
<div><br></div><div>But, I don't seem to be able to do the same from a vector:</div><div><br></div><div><div>(array-ref (apply array (shape 0 3 0 3) #(1 2 3 4 5 6 7 8 9)) 2 1)</div><div>apply: expects type <proper list> as 3rd argument, given: '#(1 2 3 4 5 6 7 8 9); other arguments were: #<procedure:array> #<array:srfi-9-record-type-descriptor></div>
</div><div><br></div><div>-Joe</div><br><div class="gmail_quote">On Mon, Mar 26, 2012 at 2:11 AM, Pierpaolo Bernardi <span dir="ltr"><<a href="mailto:olopierpa@gmail.com">olopierpa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Mar 26, 2012 at 01:31, Joe Gilray <<a href="mailto:jgilray@gmail.com">jgilray@gmail.com</a>> wrote:<br>
> Hi Tom,<br>
><br>
> thanks for the comments.<br>
><br>
> As far as reading the data into a vector, that can be accomplished with<br>
> "(define vec (read in))" I was more interested in how to create an srfi/25<br>
> array from that vector.<br>
<br>
</div>(apply array (shape 0 3 0 3) '(1 2 3 4 5 6 7 8 9))<br>
#<array:srfi-9-record-type-descriptor><br>
<br>
Does this help?<br>
</blockquote></div><br></div>