using {Ramble} | R Documentation |
using
combinator allows us to manipulate results from a parser, for
example building a parse tree. 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.
Description
%using%
is the infix operator for using
, and it is the
preferred way to use the using
operator.
Usage
using(p, f)
Arguments
p |
is the parser to be applied |
f |
is the function to be applied to each result of |
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
(item() %using% as.numeric) ("1abc")
[Package Ramble version 0.1.1 Index]