{-# LANGUAGE Rank2Types #-}
module Data.Array.Lens
(
ixmapped
) where
import Control.Lens
import Data.Array.IArray hiding (index)
ixmapped :: (IArray a e, Ix i, Ix j) => (i,i) -> IndexPreservingSetter (a j e) (a i e) i j
ixmapped = setting . ixmap
{-# INLINE ixmapped #-}