X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FArr.lhs;h=8a416530460162c356bc0699c6a051a66198cd11;hb=487b9d4571a847ee0273b4627aaa135c46a51b8d;hp=111c6e3755c70e2f1c87cb031a175b8d49210ba8;hpb=c3ccd3464c798d57f6db8fd95ede905246acbee6;p=ghc-base.git diff --git a/GHC/Arr.lhs b/GHC/Arr.lhs index 111c6e3..8a41653 100644 --- a/GHC/Arr.lhs +++ b/GHC/Arr.lhs @@ -354,7 +354,6 @@ type IPr = (Int, Int) -- | The type of immutable non-strict (boxed) arrays -- with indices in @i@ and elements in @e@. --- The Int is the number of elements in the Array. data Ix i => Array i e = Array !i -- the lower bound, l !i -- the upper bound, u @@ -412,7 +411,7 @@ arrEleBottom = error "(Array.!): undefined array element" -- -- Because the indices must be checked for these errors, 'array' is -- strict in the bounds argument and in the indices of the association --- list, but nonstrict in the values. Thus, recurrences such as the +-- list, but non-strict in the values. Thus, recurrences such as the -- following are possible: -- -- > a = array (1,100) ((1,1) : [(i, i * a!(i-1)) | i <- [2..100]]) @@ -561,7 +560,7 @@ assocs :: Ix i => Array i e -> [(i, e)] assocs arr@(Array l u _ _) = [(i, arr ! i) | i <- range (l,u)] --- | The 'accumArray' deals with repeated indices in the association +-- | The 'accumArray' function deals with repeated indices in the association -- list using an /accumulating function/ which combines the values of -- associations with the same index. -- For example, given a list of values of some index type, @hist@