[plt-scheme] any idea on this please
I am sorry, but I don't quite understand your post. What is the question? What sort of ideas are you thinking of?
Jos
----- Original Message -----
From: james firman
To: plt-scheme at list.cs.brown.edu
Sent: Thursday, March 06, 2008 1:28 PM
Subject: [plt-scheme] any idea on this please
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.
------------------------------------------------------------------------------
_________________________________________________
For list-related administrative tasks:
http://list.cs.brown.edu/mailman/listinfo/plt-scheme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080307/3db8e831/attachment.html>