Learn R Programming

Ramble (version 0.1.1)

item: item is a parser that consumes the first character of the string and returns the rest. If it cannot consume a single character from the string, it will emit the empty list, indicating the parser has failed.

Description

item is a parser that consumes the first character of the string and returns the rest. If it cannot consume a single character from the string, it will emit the empty list, indicating the parser has failed.

Usage

item(...)

Arguments

...
additional arguments for the parser

Examples

Run this code
item() ("abc")
item() ("")

Run the code above in your browser using DataLab