[GAP Forum] -1 in [1..2]

Anvita anvita21 at usa.com
Thu Sep 23 23:13:56 BST 2004


Dear Forum,

I have run into the following peculiar behavior of GAP:
----------------------------------------------------
gap> -1 in [1..2];
true
gap> Position([1..2],-1);
-1
----------------------------------------------------

On the other hand:
----------------------------------------------------
gap> l:=[1..2];;
gap> l[-1];
List Element: <position> must be positive (not a -1)
----------------------------------------------------

Is it supposed to be this way?

Thank you
Anvita

P.S. I am using GAP version 4.4.3
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm





More information about the Forum mailing list