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. mapLinear :: (Double -> b) -> Double -> Double -> Double -> [b]

    matplotlib Graphics.Matplotlib.Internal

    A handy miscellaneous function to linearly map over a range of numbers in a given number of steps

  2. mapCol :: forall (j :: Nat) (m :: Nat) (n :: Nat) a . (KnownNat j, KnownNat m, 1 <= j, j <= n) => (Int -> a -> a) -> Matrix m n a -> Matrix m n a

    matrix-static Data.Matrix.Static

    O(rows*cols). Map a function over a column. The row to map is given by a TypeLevel Nat. To use this, use -XDataKinds and -XTypeApplications. Example:

    ( 1 2 3 )   ( 1 3 3 )
    ( 4 5 6 )   ( 4 6 6 )
    mapCol @2 (\_ x -> x + 1) ( 7 8 9 ) = ( 7 9 9 )
    

  3. mapColUnsafe :: forall (m :: Nat) (n :: Nat) a . (Int -> a -> a) -> Int -> Matrix m n a -> Matrix m n a

    matrix-static Data.Matrix.Static

    O(rows*cols). Map a function over a column. The bounds of the row parameter is not checked and might throw an error. Example:

    ( 1 2 3 )   ( 1 3 3 )
    ( 4 5 6 )   ( 4 6 6 )
    mapColUnsafe (\_ x -> x + 1) 2 ( 7 8 9 ) = ( 7 9 9 )
    

  4. mapPos :: forall a b (m :: Nat) (n :: Nat) . ((Int, Int) -> a -> b) -> Matrix m n a -> Matrix m n b

    matrix-static Data.Matrix.Static

    O(rows*cols). Map a function over elements. Example:

    ( 1 2 3 )   ( 0 -1 -2 )
    ( 4 5 6 )   ( 1  0 -1 )
    mapPos (\(r,c) _ -> r - c) ( 7 8 9 ) = ( 2  1  0 )
    
    Only available when used with matrix >= 0.3.6!

  5. mapRow :: forall (i :: Nat) (m :: Nat) (n :: Nat) a . (KnownNat i, KnownNat m, 1 <= i, i <= m) => (Int -> a -> a) -> Matrix m n a -> Matrix m n a

    matrix-static Data.Matrix.Static

    O(rows*cols). Map a function over a row. The row to map is given by a TypeLevel Nat. To use this, use -XDataKinds and -XTypeApplications. Example:

    ( 1 2 3 )   ( 1 2 3 )
    ( 4 5 6 )   ( 5 6 7 )
    mapRow @2 (\_ x -> x + 1) ( 7 8 9 ) = ( 7 8 9 )
    

  6. mapRowUnsafe :: forall (m :: Nat) (n :: Nat) a . (Int -> a -> a) -> Int -> Matrix m n a -> Matrix m n a

    matrix-static Data.Matrix.Static

    O(rows*cols). Map a function over a row. The bounds of the row parameter is not checked and might throw an error. Example:

    ( 1 2 3 )   ( 1 2 3 )
    ( 4 5 6 )   ( 5 6 7 )
    mapRowUnsafe (\_ x -> x + 1) 2 ( 7 8 9 ) = ( 7 8 9 )
    

  7. mapSub :: (actionA -> actionB) -> Sub actionA -> Sub actionB

    miso Miso.Effect

    Turn a subscription that consumes actions of type a into a subscription that consumes actions of type b using the supplied function of type a -> b.

  8. mapAccumL :: (a -> Char -> (a, Char)) -> a -> Text -> (a, Text)

    miso Miso.String

    O(n) Like a combination of map and foldl'. Applies a function to each element of a Text, passing an accumulating parameter from left to right, and returns a final Text. Performs replacement on invalid scalar values.

  9. mapAccumR :: (a -> Char -> (a, Char)) -> a -> Text -> (a, Text)

    miso Miso.String

    The mapAccumR function behaves like a combination of map and a strict foldr; it applies a function to each element of a Text, passing an accumulating parameter from right to left, and returning a final value of this accumulator together with the new Text. Performs replacement on invalid scalar values.

  10. mapAction :: (actionA -> actionB) -> Transition actionA model r -> Transition actionB model r

    miso Miso.Types

    Turn a transition that schedules subscriptions that consume actions of type a into a transition that schedules subscriptions that consume actions of type b using the supplied function of type a -> b.

Page 347 of many | Previous | Next