From: ahoward Date: 2002-11-15T03:20:42+09:00 Subject: understanding continuations rubyists- i am trying to grok continuations, and only barely understand them. my goal is to implement an Enumerable#next method which uses Enumerable#each_with_index and callcc. i have one or two ways which work, but recurse infinitely.... my main problem is how to know when each_with_index is on the last item! however, i really don't understand what i'm doing! if anyone can provide more insight into continuations than the pickaxe, i'd appreciate it. -ara -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================