On Mon, May 30, 2022 at 12:41:32PM +0200, Ralf Hemmecke wrote:
> >We definitely do not want inconsistency here: in all other
> >places 3..7 by -2 gives empty range.
>
> OK, maybe we should simply say that (for lists)
>
> l(u) gives the same as [l.i for i in u]
> l(A.. by n) = l(A..maxIndex(l) by n) if n>0
> l(A.. by n) = l(A..minIndex(l) by n) if n<0
> n=0 gives error.
Yes.
> I am not so sure what to do for Stream and n<0.
> The result is actually a finite stream, but it would
> mean to expand the input stream up to A just to get
> the first element of the result. Doable, but should
> it be implemented, i.e. who would ever use that?
I think that for stream error in case of negative increment
is reasonable.
--
Waldek Hebisch
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/20220530115717.GA1298%40fricas.math.uni.wroc.pl.