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.
cons :: (Vector v a, Vector w a, Dim w ~ 'S (Dim v)) => a -> v a -> w afixed-vector Data.Vector.Fixed Cons element to the vector
snoc :: (Vector v a, Vector w a, Dim w ~ 'S (Dim v)) => a -> v a -> w afixed-vector Data.Vector.Fixed Append element to the vector
(
*> ) :: (C v, C a) => a -> v a -> v anumeric-prelude Algebra.Vector scale a vector by a scalar
(
*^ ) :: (Functor f, Num a) => a -> f a -> f alinear Linear.Vector Compute the left scalar product
>>> 2 *^ V2 3 4 V2 6 8
functorScale :: (Functor v, C a) => a -> v a -> v anumeric-prelude Algebra.Vector No documentation available.
(
#*& ) :: (C set, Enum a) => a -> set a -> set aboard-games Game.Mastermind.CodeSet No documentation available.
scaleD :: (Vector v b, Num b) => b -> v b -> v brp-tree Data.RPTree No documentation available.
snoc :: Vector v a => v a -> a -> v ario RIO.Vector No documentation available.
snoc :: Vector v a => v a -> a -> v arebase Rebase.Data.Vector.Generic No documentation available.
(
$> ) :: Functor f => f a -> b -> f bbase Data.Functor Flipped version of <$.
Examples
Replace the contents of a Maybe Int with a constant String:>>> Nothing $> "foo" Nothing
>>> Just 90210 $> "foo" Just "foo"
Replace the contents of an Either Int Int with a constant String, resulting in an Either Int String:>>> Left 8675309 $> "foo" Left 8675309
>>> Right 8675309 $> "foo" Right "foo"
Replace each element of a list with a constant String:>>> [1,2,3] $> "foo" ["foo","foo","foo"]
Replace the second element of a pair with a constant String:>>> (1,2) $> "foo" (1,"foo")