parse_recursion {dynprog} | R Documentation |
Parse the recursion part of an expressions.
parse_recursion(recursion)
recursion |
The quosure wrapping the recursion of the specification. |
The parser return a list with the following components:
recursion_env: The environment in which expressions should be evaluated.
patterns: A list of patterns, one per recursion case.
conditions: A list of conditions, one per recursion case.
recursions: A list of expressions, one per recursion case.
A parsed specification for recursions.