Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. last :: HasCallStack => [a] -> a

    faktory Faktory.Prelude

    Extract the last element of a list, which must be finite and non-empty. WARNING: This function is partial. Consider using unsnoc instead.

    Examples

    >>> last [1, 2, 3]
    3
    
    >>> last [1..]
    * Hangs forever *
    
    >>> last []
    *** Exception: Prelude.last: empty list
    

  2. last :: FMList a -> a

    fmlist Data.FMList

    No documentation available.

  3. last :: BinfoTicker -> !Double

    haskoin-store-data Haskoin.Store.Data

    No documentation available.

  4. last :: Maybe a <-> Last a

    invertible Data.Invertible.Monoid

    (Un)wrap the Last monoid.

  5. last :: Monad m => Stream m a -> m (Maybe a)

    leveldb-haskell Data.Stream.Monadic

    Unlike last, this function does not diverge if the Stream is empty. Instead, Nothing is returned.

  6. last :: Mealy a a

    mealy Data.Mealy

    most recent value

  7. last :: HasCallStack => Text -> Char

    miso Miso.String

    O(1) Returns the last character of a Text, which must be non-empty. This is a partial function, consider using unsnoc instead.

  8. last :: NonEmptyText -> Char

    non-empty-text Data.NonEmptyText

    O(1) Return the last character of the NonEmptyText This never fails.

  9. last :: NERAList a -> a

    ral Data.RAList.NonEmpty

    Last value of the list

    >>> last $ fromNonEmpty $  'a' :| ['b'..'f']
    'f'
    

  10. last :: forall (b :: BinP) a . RAVec ('BP b) a -> a

    ral Data.RAVec

    The last element of a non-empty RAVec.

    >>> reifyNonEmpty ('x' :| "yz") last
    'z'
    

Page 17 of many | Previous | Next