|
[boo]
generator methods... looking good!
[
bamboo
]
Tough weekend but I've finally got generator methods to work.
which prints:
0 1 0, 8, 16Understand why and you'll understand boo's main features. TrackBack Here's a slight modification that has "g" yielding an object instead of a callable - this modification highlights that boo infers the type of "g" based on what it returns, and also shows a cast "(f as callable)" which took me awhile to figure out how to do! Unfortunately all indentation is lost in this comment :-( b = 5 for f in g(): --Bill Wood, October 10, 2004 07:10 PM
Post a comment
|