> With your suggestion of last: (SomeAggregate X, NNI) -> X, then
> with last([1,2,3,4,5,6],2) would I expect 5 or 4?

We can define last(a,n) == first tail(a, n)

> Ooops... I just looked into UnaryRecursiveAggregate. Such a structure
> can have loops. What would be the last element of a looped list that is
> [1,2,1,2,1,2,1,2,1,2,...].

Currently # for a cyclic list will hang.  Do you can that a problem?

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to