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 :: forall (b :: BinP) a . NERAVec b a -> aral Data.RAVec.NonEmpty No documentation available.
last :: HasCallStack => ByteString -> Word8rawfilepath Data.ByteString.RawFilePath O(1) Extract the last element of a ByteString, which must be finite and non-empty. An exception will be thrown in the case of an empty ByteString. This is a partial function, consider using unsnoc instead.
last :: forall (f :: Type -> Type) (n :: Nat) a . (0 < n, CFoldable f, Dom f a) => Sized f n a -> asized Data.Sized Take the last element of non-empty sequence. If you want to make case-analysis for general sequence, see Views and Patterns section. Since 0.7.0.0
-
slist Slist O(n). Extracts the last element of a list. Uses not total last function, so use wisely. It is recommended to use safeLast instead
>>> last $ slist "qwerty" 'y' >>> last mempty *** Exception: Prelude.last: empty list ...
>> last $ infiniteSlist [1..] <hangs>
last :: Monad m => SerialT m a -> m (Maybe a)streamly Streamly.Internal.Data.Stream.IsStream Extract the last element of the stream, if any.
last xs = xs !! (Stream.length xs - 1) last = Stream.fold Fold.last
last :: Monad m => SerialT m a -> m (Maybe a)streamly Streamly.Prelude Extract the last element of the stream, if any.
last xs = xs !! (Stream.length xs - 1) last = Stream.fold Fold.last
-
streams Data.Stream.Future.Skew O(log n).
last :: (Key -> TomlCodec a) -> Key -> TomlCodec (Last a)tomland Toml.Codec.Combinator.Monoid Codec for Last wrapper for given converter's values. Decodes to Last Nothing when the key is not present.
last :: Unboxable a => Vector a -> aunboxing-vector Data.Vector.Unboxing No documentation available.
last :: forall (n :: Nat) a . SNatI n => Vec ('S n) a -> avec Data.Vec.DataFamily.SpineStrict The last element of a Vec.