Module

Data.Maybe.Last

Package
purescript-maybe
Repository
purescript/purescript-maybe

#Last Source

newtype Last a

Monoid returning the last (right-most) non-Nothing value.

Last (Just x) <> Last (Just y) == Last (Just y)
Last (Just x) <> Nothing == Last (Just x)
Last Nothing <> Nothing == Last Nothing
mempty :: Last _ == Last Nothing

Constructors

Instances