chickadee » ports » port-fold

port-fold FN ACC THUNKprocedure

Apply FN to successive results of calling the zero argument procedure THUNK, (typically read) passing the ACC value as the second argument. The FN result becomes the new ACC value. When THUNK returns #!eof, the last FN result is returned.