Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
vector-sized Data.Vector.Storable.Sized Lens to access (O(1)) and update (O(n)) an arbitrary element by its index.
-
vector-sized Data.Vector.Unboxed.Sized Lens to access (O(1)) and update (O(n)) an arbitrary element by its index.
ix :: Eq k => k -> Lens' (k -> v) vlens-family Lens.Family2.Stock Lens on a given point of a function.
ix :: (Eq k, Functor f) => k -> LensLike' f (k -> v) vlens-family-core Lens.Family.Stock ix :: Eq k => k -> Lens' (k -> v) v
Lens on a given point of a function.ix :: Ixed m => Index m -> Optic' (IxKind m) NoIx m (IxValue m)optics-extra Optics.At NB: Setting the value of this AffineTraversal will only set the value in at if it is already present. If you want to be able to insert missing values, you want at.
>>> [1,2,3,4] & ix 2 %~ (*10) [1,2,30,4]
>>> "abcd" & ix 2 .~ 'e' "abed"
>>> "abcd" ^? ix 2 Just 'c'
>>> [] ^? ix 2 Nothing
-
boltzmann-samplers Boltzmann.Data.Oracle No documentation available.
-
The Ix class is used to map a contiguous subrange of values in type onto integers. It is used primarily for array indexing (see the array package). Ix uses row-major order.
-
base Data.Ix The Ix class is used to map a contiguous subrange of values in a type onto integers. It is used primarily for array indexing (see the array package). The first argument (l,u) of each of these operations is a pair specifying the lower and upper bounds of a contiguous subrange of values. An implementation is entitled to assume the following laws about these operations:
-
base GHC.Arr The Ix class is used to map a contiguous subrange of values in a type onto integers. It is used primarily for array indexing (see the array package). The first argument (l,u) of each of these operations is a pair specifying the lower and upper bounds of a contiguous subrange of values. An implementation is entitled to assume the following laws about these operations:
-
GHC's Ix typeclass implementation.