[Haskell-cafe] Library for overloaded indexing (a la (!))
Nikita Karetnikov
nikita at karetnikov.org
Fri Aug 14 06:13:31 UTC 2015
> getSum $ [1,2,3,4] ^. ix 42
> => 0
Oh, one more thing: this is a bit different from ! or !! (in a good way)
because it doesn't raise an exception.
More information about the Haskell-Cafe
mailing list