"Page, Bill" <[EMAIL PROTECTED]> writes:

[...]

| > You can use the map operation on Vector and List but you can
| > iterate( [ i for i in List] ).
| > Is iteration built in a lower level of than spad, if not what
| > should I do to make Vector iteratable or is it not desirable ?
| > 
| 
| As discussed in section "5.4.8 for Loops" of the Axiom book, you
| may follow the keyword 'in' only by an integer segment, stream or
| a list, but try this:
| 
|  V:=vector [1,2,3]
|  [i for i in entries V]
| 
| The function 'entries' returns the elements of a vector as a
| List.

That should be seen as a "defect".  forin should be made to work with
sequence (whether built-in list for vectors).l

-- Gaby


_______________________________________________
Axiom-developer mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to