reading lists, matrices, and arrays



read_list has two optional arguments -- its signature 
is read_list(file_name, {start, number-to-read}).  The 
argument "start" determines how many objects to skip before 
reading and "number-to-read" is an  upper bound on how many 
objects get read.  If you want to use the number-to-read parameter, 
you must use the start parameter.   If Maxima allowed 
keyword parameters, we'd have a way around this.


Barton




"Jaime E. Villate" <villate@fgnu.org>
Sent by: Jaime Villate <villate@fe.up.pt>
09/18/2003 02:46 AM

 
        To:     Barton Willis <willisb@unk.edu>
        cc:     maxima@www.ma.utexas.edu, lmilan@shell.core.com
        Subject:        Re: [Maxima] reading lists, matrices, and arrays



> 
> (C8) read_list(fn,1,5);
> (D8)                                   [0, 1, 2, 3, 4]
> (C9) read_list(fn,1,5);
> (D9)                                     [5, 6, 7, 8]
> (C10) read_list(fn,1,5);
> (D10)                                         []

The "1" seems redundant here. How about just "read_list(fn,5)" to do