chickadee » prcc » rep

rep PARSERprocedure

Repeat 0 to infinite times. Returns a list of PARSER results, with as many items as matches that were found.

Example:

(parse-string "aabba" (rep (sel (char #\a) (char #\b))))
=> ("a" "a" "b" "b" "a")