[GAP Forum] [Devel] Strange output

Bill Allombert Bill.Allombert at math.u-bordeaux1.fr
Sun Feb 10 12:11:46 GMT 2013


On Sun, Feb 10, 2013 at 07:25:14PM +0800, Dmitrii (Dima) Pasechnik wrote:
> On 10 February 2013 14:25, Laurent Bartholdi
> <laurent.bartholdi at 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.



More information about the Forum mailing list