[comp.lang.scheme] Flexible "car"?

lavinus@csgrad.cs.vt.edu (04/12/91)

Pardon if this is a stupid question, but...

Is there a way to redefine car such that it behaves as normal given a normal
list, and does a force on its return value if passed a stream?  Along the
same lines, has anyone out there implemented a functional (i.e. stream) I/O
package of any sort for Scheme?  Being an FP snob, I hate to use side-
effecting I/O, but the first question seems to be a prerequisite for the
second...

Thanks in advance,

Joe
--
_________________________________ \ ___________________________________
 Joseph W. Lavinus, Virginia Tech  \   email: lavinus@csgrad.cs.vt.edu
 1204-A University Terrace         /\  phone: (703) 552-0241
 Blacksburg, VA  24060            /  \        (703) 231-5853