Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
force :: forall a (n :: Nat) . Storable a => Vector n a -> Vector n avector-sized Data.Vector.Storable.Sized O(n) Yield the argument but force it not to retain any extra memory, possibly by copying it. This is especially useful when dealing with slices. For example:
force (slice 0 2 <huge vector>)
Here, the slice retains a reference to the huge vector. Forcing it creates a copy of just the elements that belong to the slice and allows the huge vector to be garbage collected.-
vector-sized Data.Vector.Unboxed.Sized O(n) Apply the monadic action to all elements of the vector, yielding a vector of results. Equvalent to flip mapM.
forM_ :: forall m a (n :: Nat) b . (Monad m, Unbox a) => Vector n a -> (a -> m b) -> m ()vector-sized Data.Vector.Unboxed.Sized O(n) Apply the monadic action to all elements of a vector and ignore the results. Equivalent to flip mapM_.
force :: forall a (n :: Nat) . Unbox a => Vector n a -> Vector n avector-sized Data.Vector.Unboxed.Sized O(n) Yield the argument but force it not to retain any extra memory, possibly by copying it. This is especially useful when dealing with slices. For example:
force (slice 0 2 <huge vector>)
Here, the slice retains a reference to the huge vector. Forcing it creates a copy of just the elements that belong to the slice and allows the huge vector to be garbage collected.-
yesod-form Yesod.Form.Functions No documentation available.
-
yi-core Yi.Buffer.Misc No documentation available.
-
yi-core Yi.Config.Simple No documentation available.
-
yi-core Yi.Tab Forces all windows in the tab
foreground :: Attributes -> !Coloryi-language Yi.Style No documentation available.
forM :: (Traversable t, Monad m) => t a -> (a -> m b) -> m (t b)base-compat-batteries Control.Monad.Compat forM is mapM with its arguments flipped. For a version that ignores the results see forM_.