chickadee » prcc » even

even SEQ-PARSERprocedure

Generate a parser which returns the elements at even-numbered positions of sequence parser output, collected in a list.

Note: This starts counting at zero!

Example:

(parse-string "abcde" (even (seq (char #\a) (char #\b) (char #\c) (char #\d) (char #\e))))
=> ("a" "c" "e")