lib/more/facets/continuation.rb in facets-2.8.4 vs lib/more/facets/continuation.rb in facets-2.9.0.pre.1
- old
+ new
@@ -15,17 +15,17 @@
# along side the created Continuation, but this form is confusing
# and does only rarely make sense.
#
# # Count from 0 to 10
# cc, counter = Continuation.create(0)
- # puts counter
+ # counter #~> 0..10
# cc.call(counter + 1) if counter < 10
#
# # Implement something similar to Array#inject using Continuations.
# # For simplicity's sake, this is not fully compatible with the real
# # inject. Make sure that you understand Array#inject before you try
# # to understand this.
- # class Array
+ # class ::Array
# def cc_inject(value = nil)
# copy = self.clone
# cc, result, item = Continuation.create(value, nil)
# next_item = copy.shift
# if result and item