Hoogle Search

Within LTS Haskell 24.9 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. lastOf :: Fold s t a b -> s -> Maybe a

    lens-family Lens.Family2

    Returns Just the last referenced value. Returns Nothing if there are no referenced values.

  2. lastDim :: Index ix => ix -> Int

    massiv Data.Massiv.Core.Index

    Get the innermost dimension from the index

    Examples

    >>> lastDim (2 :> 3 :> 4 :. 5)
    5
    

  3. last' :: (HasCallStack, Source r e) => Vector r e -> e

    massiv Data.Massiv.Vector

    O(1) - Get the last element of a Source vector. Throws an error on empty. Related: lastM, unsnocM

    Examples

    >>> last' (Ix1 10 ... 10000000000000)
    10000000000000
    
    Similar:
    • Data.List.last Also partial, but it has O(n) complexity. Fusion is broken if there other consumers of the list.
    • Data.Vector.Generic.last Also constant time and partial. Will cause materialization of the full vector if any other function is applied to the vector.

  4. lastM :: (Source r e, MonadThrow m) => Vector r e -> m e

    massiv Data.Massiv.Vector

    O(1) - Get the last element of a Source vector. Related: last', unsnocM Throws Exceptions: SizeEmptyException

    Examples

    >>> lastM (Ix1 10 ... 10000000000000)
    10000000000000
    
    >>> lastM (Ix1 10 ... 10000000000000) :: Maybe Int
    Just 10000000000000
    
    >>> either show (const "") $ lastM (fromList Seq [] :: Array P Ix1 Int)
    "SizeEmptyException: (Sz1 0) corresponds to an empty array"
    

  5. lastDef :: a -> [a] -> a

    protolude Protolude.Safe

    No documentation available.

  6. lastMay :: [a] -> Maybe a

    protolude Protolude.Safe

    No documentation available.

  7. lastIndexOf :: TypedArray a => Int -> Elem a -> a -> JSM Int

    jsaddle JavaScript.TypedArray

    No documentation available.

  8. lastIndexOf :: TypedArray a => Int -> Elem a -> a -> JSM Int

    jsaddle JavaScript.TypedArray.Internal

    No documentation available.

  9. lastRequestResponseContext :: Show respBody => Request -> Response respBody -> String

    sydtest-wai Test.Syd.Wai.Client

    An assertion context, for Context, that shows the last request and response

  10. lastException :: ForeverE e s -> e

    essence-of-live-coding LiveCoding.Forever

    No documentation available.

Page 33 of many | Previous | Next