CRAN/E | matchr

matchr

Pattern Matching and Enumerated Types in R

Installation

About

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.

Key Metrics

Version 0.1.0
R ≥ 3.5.0
Published 2021-09-09 954 days ago
Needs compilation? no
License MIT
License File
CRAN checks matchr results

Downloads

Yesterday 9 0%
Last 7 days 39 +44%
Last 30 days 199 +18%
Last 90 days 721 +9%
Last 365 days 2.604 -20%

Maintainer

Maintainer

Christopher Mann

cmann3@unl.edu

Authors

Christopher Mann

Material

Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Depends

R ≥ 3.5.0
rlang
utils

Reverse Imports

elbird
refer