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.

  1. cons :: (Vector v a, Vector w a, Dim w ~ 'S (Dim v)) => a -> v a -> w a

    fixed-vector Data.Vector.Fixed

    Cons element to the vector

  2. snoc :: (Vector v a, Vector w a, Dim w ~ 'S (Dim v)) => a -> v a -> w a

    fixed-vector Data.Vector.Fixed

    Append element to the vector

  3. (*>) :: (C v, C a) => a -> v a -> v a

    numeric-prelude Algebra.Vector

    scale a vector by a scalar

  4. (*^) :: (Functor f, Num a) => a -> f a -> f a

    linear Linear.Vector

    Compute the left scalar product

    >>> 2 *^ V2 3 4
    V2 6 8
    

  5. functorScale :: (Functor v, C a) => a -> v a -> v a

    numeric-prelude Algebra.Vector

    No documentation available.

  6. ( #*& ) :: (C set, Enum a) => a -> set a -> set a

    board-games Game.Mastermind.CodeSet

    No documentation available.

  7. scaleD :: (Vector v b, Num b) => b -> v b -> v b

    rp-tree Data.RPTree

    No documentation available.

  8. snoc :: Vector v a => v a -> a -> v a

    rio RIO.Vector

    No documentation available.

  9. snoc :: Vector v a => v a -> a -> v a

    rebase Rebase.Data.Vector.Generic

    No documentation available.

  10. ($>) :: Functor f => f a -> b -> f b

    base 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")
    

Page 7 of many | Previous | Next