[Haskell-cafe] The range operator
Andrew Coppin
andrewcoppin at btinternet.com
Fri Apr 4 16:49:01 EDT 2008
Stefan O'Rear wrote:
> 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]
>
More to the point, the range y..z goes in steps of y-z. ;-)
More information about the Haskell-Cafe
mailing list