Package: matchr 0.1.0

matchr: Pattern Matching and Enumerated Types in R

Inspired by pattern matching and enum types in Rust and many functional programming languages, this package offers an updated version of the 'switch' function called 'Match' that accepts atomic values, functions, expressions, and enum variants. Conditions and return expressions are separated by '->' and multiple conditions can be associated with the same return expression using '|'. 'Match' also includes support for 'fallthrough'. The package also replicates the Result and Option enums from Rust.

Authors:Christopher Mann <[email protected]>

matchr_0.1.0.tar.gz
matchr_0.1.0.zip(r-4.7-any)matchr_0.1.0.zip(r-4.6-any)matchr_0.1.0.zip(r-4.5-any)
matchr_0.1.0.tgz(r-4.6-any)matchr_0.1.0.tgz(r-4.5-any)
matchr_0.1.0.tar.gz(r-4.7-any)matchr_0.1.0.tar.gz(r-4.6-any)
matchr_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
matchr/json (API)

# Install 'matchr' in R:
install.packages('matchr', repos = c('https://cmann3.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.78 score 2 packages 9 scripts 296 downloads 24 exports 1 dependencies

Last updated from:e28e696695. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develNOTE91
source / vignettesOK136
linux-releaseNOTE90
macos-releaseNOTE112
macos-oldrelNOTE77
windows-develNOTE64
windows-releaseNOTE53
windows-oldrelNOTE61
wasm-releaseOK71

Exports:%.%%fn%Enumenum_typeErrfallthroughinto_optioninto_resultis.enumis.enum_typeis.erris.noneis.okis.someis.variantMatchmatch_condMatchplyOkSomeTryunwrapunwrap_orvariant

Dependencies:rlang