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

Jake Wheat jakewheatmail at googlemail.com
Sun Feb 14 17:21:44 EST 2010


On 14 February 2010 22:11, Evan Laforge <qdunkan at gmail.com> wrote:
>>> Finally, it is the array subscript operator:
>>>
>>> let x = arr ! 10
>>
>> Shouldn't this be
>>
>> let x = arr !! 10
>
> !! is the list subscript.  Look in Data.Array.IArray for (!).  Or Data.Map.
>
> There's still no consensus on typeclasses for collections, so these
> are all separate functions.  Has anyone taken a shot at a set of
> AT-using classes for the standard collections?
>

Oops, thanks.

That is a really useful page (http://www.haskell.org/haskellwiki/Keywords).


More information about the Haskell-Cafe mailing list