Safe Haskell | None |
---|---|
Language | Haskell2010 |
Indexing
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')))))