castList<R> method

Parser<List<R>> castList<R>()

Returns a parser that casts itself to Parser<List<R>>. Assumes this parser to be of type Parser<List>.

Implementation

Parser<List<R>> castList<R>() => CastListParser<T, R>(this);