Data.RAVec.Optics
Contents
ix :: Pos b -> Lens' (RAVec b a) a Source #
Index lens.
>>> let Just ral = fromList "xyz" :: Maybe (RAVec B.Bin3 Char) >>> set (ix maxBound) 'Z' ral NonEmpty (NE (Cons1 (Leaf 'x') (Last (Node (Leaf 'y') (Leaf 'Z')))))
>>>
let Just ral = fromList "xyz" :: Maybe (RAVec B.Bin3 Char)
set (ix maxBound) 'Z' ral
Methods
each :: IxTraversal (Pos n) (RAVec n a) (RAVec n b) a b #
Associated Types
type IxKind (RAVec b a) #
ix :: Index (RAVec b a) -> Optic' (IxKind (RAVec b a)) NoIx (RAVec b a) (IxValue (RAVec b a)) #