using: 'using' combinator allows us to manipulate results from a...

Description Usage Arguments Value Examples

Description

%using% is the infix operator for using, and it is the preferred way to use the using operator.

Usage

1
using(p, f)

Arguments

p

is the parser to be applied

f

is the function to be applied to each result of p.

Value

The parser (p %using% f) has the same behaviour as the parser p, except that the function f is applied to each of its result values.

Examples

1
(item() %using% as.numeric) ("1abc")

chappers/Ramble documentation built on May 13, 2019, 3:30 p.m.