chickadee » prcc » odd

odd SEQ-PARSERprocedure

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

Note: This starts counting at zero!

Example:

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