[plt-scheme] any idea on this please

james firman frijam27 at yahoo.com
Thu Mar 6 07:28:47 EST 2008


sir Good Day :

PLT Schemes
i used this utility functions i used it to manipulate the stream such as map and filter.

> ( define (inc x) (+ 1 x))
>(define int (make-stream 0 inc )
>(define sqr x ))
> (stream-print (stream-map int sqr) 10)
   ( 0 1 4 9 16 25 36 49 64 81 ) ...... output
>( stream-print (stream-filter int odd?) 15 )
( 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29)

i have to used the utility functions below 

1. (stream-map stream op)
2.(stream-filter stream ok? )

" i used the accessor stream-current and stream-next to access the succeeding stream.


Thanks a lot i hope you give us ideas on this :)

More Power ...... 

       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.cs.brown.edu/pipermail/plt-scheme/attachments/20080306/9a1dc60d/attachment.html


More information about the plt-scheme mailing list