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