Sunday, 15 July 2012

functional programming - Can I have a co-routine of three functions using continuations in Scheme? -


Is it possible to add another function procC here so that the sequence of evaluations is procA-> procB-> procC-> Proca ... ? Display in

  (proca another-fun) (loop (n5)) ("proxy a \ n") (set! / Cc other-fun) (when (& Gt; n 0) (loop (- n 1))) (define (another-funny) (loop (n5)) ("in process B" (n) () () (- (1) -  

  (lwp) ((- n 1))) () () ( 
"Programming language") - Define the list) ();; Highlighter becomes confused (define lwp (lambda (thumb) (set! Lw-list (adp lwp-list (list thumb))) (start Define the inside (Lambda () (Let's ([PLW-list]] (set! LWP-list (CDR LW-List) (P))) (Define Pause (Lambda) CC (Lambda (K) (LWP (Lambda) (K # F)) (Start ()))) (LWP (Lambda () (f () (Stop) (Display "H") (F)) (LWP (Lamb () (stop) (display "E" (F) () ()) (LWP (lambda () (f (p) (displayed "y") (f) ) (LWP (l (w) (f (p) (f (p) (display "!") (F))) (LWP (lambda (f (p) (pause) (newline) (f)) ) (Starting) Hey! Hey! Hey! Hey!

No comments:

Post a Comment