[Haskell-cafe] The range operator

Stefan O'Rear stefanor at cox.net
Fri Apr 4 16:00:25 EDT 2008


On Fri, Apr 04, 2008 at 08:58:06PM +0100, PR Stanley wrote:
> Hi folks
> [x, y..z]
> What's the role of x?
> Cheers,
> Paul

First number in the output; also all pairs differ as much as the first
two numbers do.

Try e.g [1, 2 .. 10] and [0, 2 .. 10]

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080404/23505866/attachment.bin


More information about the Haskell-Cafe mailing list