Hoogle Search
Within LTS Haskell 24.17 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
testing-feat Test.Feat.Enumerate Maybe monoid returning the rightmost non-Nothing value. Last a is isomorphic to Dual (First a), and thus to Dual (Alt Maybe a) Data.Semigroup.Last. The former returns the last non-Nothing, so x <> Data.Monoid.Last Nothing = x. The latter simply returns the last value, thus x <> Data.Semigroup.Last Nothing = Data.Semigroup.Last Nothing.
Examples
>>> Last (Just "hello") <> Last Nothing <> Last (Just "world") Last {getLast = Just "world"}>>> Last Nothing <> mempty Last {getLast = Nothing} -
testing-feat Test.Feat.Enumerate No documentation available.
-
histogram-fill Data.Histogram Bin maximum index.
-
histogram-fill Data.Histogram.Generic Bin maximum index.
-
language-bash Language.Bash.Syntax The last pipeline of a list.
Last :: f a -> NERAList' (f :: Type -> Type) aral Data.RAList.NonEmpty No documentation available.
Last :: forall (n :: Nat) a . Tree n a -> NERAVec' n 'BE aral Data.RAVec.NonEmpty No documentation available.
-
streams Data.Stream.Future No documentation available.
Last :: !Complete a -> Future astreams Data.Stream.Future.Skew No documentation available.
type family
Last (d :: [k]) :: ktype-map Data.TypeMap.Internal.Unsafe Last element of a list.