maybe: The Maybe Monad

The maybe type represents the possibility of some value or nothing. It is often used instead of throwing an error or returning 'NULL'. The advantage of using a maybe type over 'NULL' is that it is both composable and requires the developer to explicitly acknowledge the potential absence of a value, helping to avoid the existence of unexpected behaviour.

Version: 1.1.0
Imports: magrittr
Suggests: testthat (≥ 3.0.0), quickcheck, covr
Published: 2023-08-07
DOI: 10.32614/CRAN.package.maybe
Author: Andrew McNeil [aut, cre]
Maintainer: Andrew McNeil <andrew.richard.mcneil at>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README NEWS
CRAN checks: maybe results


Reference manual: maybe.pdf


Package source: maybe_1.1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): maybe_1.1.0.tgz, r-oldrel (arm64): maybe_1.1.0.tgz, r-release (x86_64): maybe_1.1.0.tgz, r-oldrel (x86_64): maybe_1.1.0.tgz
Old sources: maybe archive

Reverse dependencies:

Reverse imports: braids, chronicler, cyclotomic, intmap


Please use the canonical form to link to this page.