Hello all,

As an exercise, I was trying to figure out how to implement
a post-test loop in Ruby.

Yes, I'm aware of the begin-end trick. I'm just trying this as
a learning experience and a gee-whiz type of thing.

Was thinking of a notation like:

repeat_until (i==10) do
  i = foo()
  puts i
end

repeat_while (x>0) do
   # blah blah...
end

Each, of course, would be guaranteed to loop at least once.

At first I tried using a Continuation... but I *don't* grok
continuations yet!

As a side note, I wondered if there might be a way to write
it as an iterator using retry or some such. I had no luck here
either...

Thoughts?

Hal