[Haskell-cafe] What is the meaning of tilde ("~") symbol

wagnerdm at seas.upenn.edu wagnerdm at seas.upenn.edu
Sun Feb 14 17:17:36 EST 2010


Quoting Jake Wheat <jakewheatmail at googlemail.com>:

> On 14 February 2010 16:02, Henk-Jan van Tuyl <hjgtuyl at chello.nl> wrote:
>> Finally, it is the array subscript operator:
>>
>> let x = arr ! 10
>
> Shouldn't this be
>
> let x = arr !! 10

(!) is for arrays, (!!) is for lists.
~d


More information about the Haskell-Cafe mailing list