Data.RAVec.Lens
Contents
ix :: Pos b -> Lens' (RAVec b a) a Source #
Index lens.
>>> let Just ral = fromList "xyz" :: Maybe (RAVec B.Bin3 Char) >>> ral & ix maxBound .~ 'Z' NonEmpty (NE (Cons1 (Leaf 'x') (Last (Node (Leaf 'y') (Leaf 'Z')))))
>>>
let Just ral = fromList "xyz" :: Maybe (RAVec B.Bin3 Char)
ral & ix maxBound .~ 'Z'
Methods
ix :: Index (RAVec b a) -> Traversal' (RAVec b a) (IxValue (RAVec b a)) #
each :: Traversal (RAVec n a) (RAVec n b) a b #