> < ^ Date: Fri, 24 Nov 1995 16:03:24 +0800
> < ^ From: David Wood <davidw@cs.usyd.edu.au >
> ^ Subject: Problem with ranges in GAP

GAP seems to have some problems whenever doing an assignment or
arithmetic operation to an element of a list which is represented as a
range with a negative difference.

For example:

gap> a := [10,8..2];
[ 10, 8 .. 2 ]
gap> a[3] := a[3] + 4;
10
gap> a;
[ 10, -2, 10,, ]

Is there any way to force GAP to represent a list using the ordinary
list representation, instead of the compact range representation, even
when GAP has realised the list is in fact a range?

-----------------------------------------------------------------------
David Wood                                15 Vivian Way, Boya, WA 6056,
s8910859@rand.ecel.uwa.edu.au             Australia.  (+61 9) 299 6471
-----------------------------------------------------------------------

> < [top]