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 :: MonadThrow m => [a] -> m alistsafe Data.List.Safe Extract the last element of a list. Empty lists throw an EmptyListException.
last :: TreePos Empty a -> TreePos Empty arosezipper Data.Tree.Zipper The last space in the current forest.
last :: StringCells s => s -> StringCellChar sstring-class Data.String.Class No documentation available.
-
verset Verset Extract the last element of the stream.
last :: HasCallStack => [a] -> axmonad-contrib XMonad.Config.Prime 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 :: HasCallStack => [a] -> axmonad-contrib XMonad.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
LastStmt :: XLastStmt idL idR body -> body -> Maybe Bool -> SyntaxExpr idR -> StmtLR idL idR bodyghc Language.Haskell.Syntax.Expr No documentation available.
-
Cabal-syntax Distribution.Compat.Semigroup A copy of Last.
-
Cabal-syntax Distribution.Compat.Semigroup No documentation available.
data
LastSym0 (a1 :: TyFun NonEmpty a a)singletons-base Data.List.NonEmpty.Singletons No documentation available.