On 05/11/2011 06:10 PM, Bill Page wrote:
The FriCAS langue reference in hyperdoc (5.4.6) describes the
'iterate' and 'break' commands. I do not see iterate used anywhere in
library code. Is this only available in the interpreter or is it in
spad by some other name?
Try
cd src/algebra
grep iterate *|grep -v '\+\+'
Then you'll find something like.
https://github.com/hemmecke/fricas-svn/blob/master/src/algebra/modhpsol.spad.pamphlet#L229
A construction like
repeat
i := i+1
if i > 5 then break
odd? i => "iterate"
output(i)
more or less equivalent to the version with the iterate keyword.
The "iterate" stuff as they appear in the library code (as exemplified
above) look ugly and are probably remainders of a time without the
iterate keyword.
Ooops, the iterate keyword is not yet implemented. :-( How bad!
Ralf
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.