t/library/coroutine.t -- Test the Parrot::Coroutine class
./parrot t/library/coroutine.t
This script tests the Parrot::Coroutine class using an implementation of the "same fringe" problem.
Parrot::Coroutine
Note: In order to see how coroutine calling works in detail, insert trace 4 before and trace 0 after one of the same_fringe calls in the body of the main program.
trace 4
trace 0
same_fringe
http://swiss.csail.mit.edu/classes/symbolic/spring06/psets/ps6/samefringe.scm -- a collection of "same fringe" implementations in Scheme.
To install Rakudo::Star, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rakudo::Star
CPAN shell
perl -MCPAN -e shell install Rakudo::Star
For more information on module installation, please visit the detailed CPAN module installation guide.