Pattern Matching and Enumerated Types in R


[Up] [Top]

Documentation for package ‘matchr’ version 0.1.0

Help Pages

!.Option Extract Result or Return
!.Result Extract Result or Return
%.% Compose Functions
%fn% Create Function
bang Extract Result or Return
Enum Create Enumerated Type
enum_type Enum Type
Err Create an 'Err' Result
fallthrough Fall Through Match
into_option Convert Object into Option
into_result Convert Object into Result
is.enum Is Object an Enum
is.enum_type Check Enum Type
is.err Check if Result is an Err
is.none Check if Option is None
is.ok Check if Result is Ok
is.some Check if Option is Some
is.variant Check Enum Variant
Match Match Value Against Multiple Values
Matchply Match Each Object in List or Vector
match_cond Check and Evaluate Match Condition
None None
Ok Create an 'Ok' Result
Option Option
Result Result
Some Create an 'Some' Option
Try Execute Expression as Result
unwrap Extract the Value Contained in Enum
unwrap_or Extract the Value Contained in Enum
variant Enum Variant