haskell-cafe@haskell.org
[Top] [All Lists]

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

Subject: Re: [Haskell-cafe] What is the meaning of tilde ("~") symbol
From: Evan Laforge
Date: Sun, 14 Feb 2010 14:11:26 -0800
>> 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?
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>