On Sun, Feb 10, 2013 at 07:25:14PM +0800, Dmitrii (Dima) Pasechnik wrote: > On 10 February 2013 14:25, Laurent Bartholdi > <laurent.bartho...@gmail.com> wrote: > > The [a, b .. c] in GAP means { a, b, 2b-a, ..., a+i(b-a), ..., c } in > > mathematics. > > I've been using GAP for 20 years, and I never saw or heard about this > one. Sorry. > IMHO it is confusing, counter-intuitive, goes against well-established > practices > in other programming languages and CAS's, etc... > > I can probably list a dozen programming languages / CAS's, where such > lists (or/and loops) are constructed by the triple of parameters > ("beginning","end","step"), in this order.
Haskell works like GAP too: [1,3..11] give [1,3,5,7,9,11] Cheers, Bill. _______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum