some: 'some' matches 1 or more of pattern 'p'. in BNF notation,...

Description Usage Arguments See Also Examples

View source: R/parser.R

Description

some matches 1 or more of pattern p. in BNF notation, repetition occurs often enough to merit its own abbreviation. When zero or more repetitions of a phrase p are admissible, we simply write p+. The some combinator corresponds directly to this operator, and is defined in much the same way.

Usage

1
some(p)

Arguments

p

is the parser to match 1 or more times.

See Also

maybe, many

Examples

1
2
Digit <- function(...) {satisfy(function(x) {return(!!length(grep("[0-9]", x)))})}
some(Digit()) ("123abc")


Ramble documentation built on May 19, 2017, 7:22 a.m.
Search within the Ramble package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.