Learn R Programming

pmatch (version 0.1.4)

process_alternatives: Goes through a list of |-separated expressions and define them as constructors

Description

Goes through a list of |-separated expressions and define them as constructors

Usage

process_alternatives(constructors, data_type_name, env)

Arguments

constructors

The constructs specification

data_type_name

The type the constructor should generate

env

The environment where we define the constructor