Arithmetical series
"Paqui Lucio" <[email protected]> Thu, 5 May 2005 16:27:14 +0200
| Newsgroups | gmane.comp.lang.haskell.hugs.user,gmane.comp.lang.haskell.cafe |
|---|---|
| Message-ID | <[email protected]> |
Hi, Please, what is the exactly meaning of [n,m..m]? or where can I find a precise explanation obout this arithmetical series? I mean, it seems quite strange that, for example: Prelude> [1.2,3.3..8] [1.2,3.3,5.4,7.5] Prelude> [1.2,3.3..9] [1.2,3.3,5.4,7.5,9.6] Prelude> [1,-3..(-14)] [1,-3,-7,-11] Prelude> [1,-3..(-15)] [1,-3,-7,-11,-15] Thanks in advance, Paqui --------------------------------- Paqui Lucio Dpto de LSI Facultad de Informática Paseo Manuel de Lardizabal, 1 20080-San Sebastián SPAIN --------------------------------- Tfn: (+34) (9)43 015049 Fax: (+34) (9)43 015590 ---------------------------------