Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!vtserf!creatures!csgrad!lavinus From: lavinus@csgrad.cs.vt.edu Newsgroups: comp.lang.scheme Subject: Flexible "car"? Message-ID: <1096@creatures.cs.vt.edu> Date: 12 Apr 91 13:58:21 GMT References: <1991Apr11.101601.918@uni2a.unige.ch> Sender: usenet@creatures.cs.vt.edu Reply-To: lavinus@csgrad.cs.vt.edu () Organization: Virginia Tech Computer Science, Blacksburg, VA Lines: 17 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