Changeset 12749 in project


Ignore:
Timestamp:
12/03/08 21:38:47 (12 years ago)
Author:
azul
Message:

Changes applied for azul (193.142.125.1) through svnwiki:

Adding more info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/stream-ext

    r12730 r12749  
    449449<procedure>(with-input-from-stream stream proc)</procedure>
    450450
     451Calls the procedure {{proc}} with no arguments, with its {{current-input-port}}
     452bound to a port created from the stream of characters {{stream}}.
     453
     454<examples testgroup='with-input-from-stream' filename='stream-ext'>
     455
     456<example>
     457<expr>(with-input-from-stream (stream #\" #\a #\b #\c #\") read)</expr>
     458<result>"abc"</result>
     459</example>
     460
     461</examples>
     462
     463The stream will only be evaluated as the input is consumed by the
     464procedure.
     465
    451466<enscript highlight=scheme filename='stream-ext'>
    452467(define (with-input-from-stream stream proc)
Note: See TracChangeset for help on using the changeset viewer.