[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] Currying and iteration
From: |
Gabriel Dos Reis |
Subject: |
Re: [Axiom-developer] Currying and iteration |
Date: |
28 Mar 2006 04:56:48 +0200 |
"Page, Bill" <address@hidden> 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] Currying and iteration, Antoine Hersen, 2006/03/27
- RE: [Axiom-developer] Currying and iteration, Page, Bill, 2006/03/27
- Re: [Axiom-developer] Currying and iteration,
Gabriel Dos Reis <=
- RE: [Axiom-developer] Currying and iteration, Page, Bill, 2006/03/27
- RE: [Axiom-developer] Currying and iteration, Page, Bill, 2006/03/28