Re: Re: [Axiom-developer] Summing over a list

Gabriel Dos Reis <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.general
Organization Texas A&M University, Department of Computer Science
Message-ID <[email protected]>
"Bill Page" <[email protected]> writes:

[...]

| I would really like to write it like this:
| 
| (5) -> macro Sum(x,z) == reduce(+,[x for variable(z) in segment(z)])
| 
|    Line   1: macro Sum(x,z) == reduce(+,[x for variable(z) in segment(z)])
|             ..........................................A
|    Error  A: syntax error at top level
|    Error  A: Possibly missing a IN
|     2 error(s) parsing

Do you need a macro there or do you want the syntax to have less
restrictions there?  

-- Gaby
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.