option package:parser-combinators

option x p tries to apply the parser p. If p fails without consuming input, it returns the value x, otherwise the value returned by p.
option x p = p <|> pure x
See also: optional.
One or none.