There is indeed a bug here, and one which remains in the current version it seems. Thanks for reporting it. The bug is in the "JoinRanges" method. I am investigating further.
Chris On 05/12/2014 21:58, "Matt Fayers" <m.fay...@qmul.ac.uk> wrote: >Dear GAP forum, > >I am experiencing some strange behaviour with GAP's Union function: the >command > >Union([2],[3],[5,1..1]); > >returns > >[2,3] > >rather than the expected [1,2,3,5]. (If I do > >Union([2],[3],[5,1]) > >or > >Union([2],[5,1..1]) > >the behaviour is as expected.) > >Any ideas? I'm running GAP 4.7.5 on Linux (because that's the version >that comes with my Linux distribution); I apologise if this has already >been resolved in a more recent version. > >Best wishes, >Matt Fayers. >____________________________________________________________________ > >Matthew Fayers >School of Mathematical Sciences >Queen Mary University of London >Mile End Road >London >E1 4NS >020 7882 5479 >www.maths.qmul.ac.uk.~mf/ >____________________________________________________________________ > >_______________________________________________ >Forum mailing list >Forum@mail.gap-system.org >http://mail.gap-system.org/mailman/listinfo/forum _______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum