Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapInPlace :: PrimMonad m => (forall a . Bits a => a -> a) -> MVector (PrimState m) Bit -> m ()bitvec Data.Bit Apply a function to a mutable vector bitwise, rewriting its contents. Cf. mapBits.
>>> :set -XOverloadedLists >>> import Data.Bits >>> Data.Vector.Unboxed.modify (mapInPlace complement) [0,1,1] [1,0,0]
mapBits :: (forall a . Bits a => a -> a) -> Vector Bit -> Vector Bitbitvec Data.Bit.ThreadSafe Map a vectors with the given function. Similar to map, but faster.
>>> :set -XOverloadedLists >>> import Data.Bits >>> mapBits complement [0,1,1] [1,0,0]
mapInPlace :: PrimMonad m => (forall a . Bits a => a -> a) -> MVector (PrimState m) Bit -> m ()bitvec Data.Bit.ThreadSafe Apply a function to a mutable vector bitwise, rewriting its contents. Cf. mapBits.
>>> :set -XOverloadedLists >>> import Data.Bits >>> Data.Vector.Unboxed.modify (mapInPlace complement) [0,1,1] [1,0,0]
-
bound Bound.Scope Perform a change of variables on bound variables.
-
bound Bound.Scope mapM over both bound and free variables
-
bound Bound.Scope mapM_ over the variables bound by this scope
-
bound Bound.Scope A traverseScope that can be used when you only have a Monad instance
-
bound Bound.Scope A traverseScope_ that can be used when you only have a Monad instance
-
bound Bound.Scope Perform a change of variables, reassigning both bound and free variables.
-
bound Bound.Scope.Simple Perform a change of variables on bound variables.