chickadee » extras » read-token

read-token PREDICATE #!optional PORTprocedure

Reads characters from PORT (which defaults to the value of (current-input-port)) and calls the procedure PREDICATE with each character until PREDICATE returns false. Returns a string with the accumulated characters.