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.
last :: HasCallStack => [a] -> afaktory 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
-
fmlist Data.FMList No documentation available.
last :: BinfoTicker -> !Doublehaskoin-store-data Haskoin.Store.Data No documentation available.
-
invertible Data.Invertible.Monoid (Un)wrap the Last monoid.
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.
-
mealy Data.Mealy most recent value
last :: HasCallStack => Text -> Charmiso 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.
-
non-empty-text Data.NonEmptyText O(1) Return the last character of the NonEmptyText This never fails.
-
ral Data.RAList.NonEmpty Last value of the list
>>> last $ fromNonEmpty $ 'a' :| ['b'..'f'] 'f'
last :: forall (b :: BinP) a . RAVec ('BP b) a -> aral Data.RAVec The last element of a non-empty RAVec.
>>> reifyNonEmpty ('x' :| "yz") last 'z'