Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
last :: Unbox a => Array a -> Maybe astreamly-core Streamly.Internal.Data.Array >>> last arr = Array.getIndexRev arr 0
Pre-releaselast :: forall (m :: Type -> Type) a . Monad m => Fold m a (Maybe a)streamly-core Streamly.Internal.Data.Fold Deprecated: Please use latest instead.
last :: Monad m => Stream m a -> m (Maybe a)streamly-core Streamly.Internal.Data.Stream No documentation available.
last :: Monad m => StreamK m a -> m (Maybe a)streamly-core Streamly.Internal.Data.StreamK Extract the last element of the stream, if any.
last :: (HasCallStack, Monad m) => Stream m a -> m avector-stream Data.Stream.Monadic Last element of the Stream or error if empty
-
Agda Agda.Utils.List1 Extract the last element of the stream.
-
binary-list Data.BinaryList O(log n). Get the last element of a binary list.
last :: HasCallStack => [a] -> acalligraphy Calligraphy.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
last :: forall i o u (m :: Type -> Type) . Pipe i o u m (Maybe i)conduino Data.Conduino.Combinators Get the last item emitted by a stream. To get the first item ("head"), use await or awaitSurely.
last :: HasCallStack => [a] -> adimensional Numeric.Units.Dimensional.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