From: sto.mar@... Date: 2013-01-25T16:00:53+09:00 Subject: Re: General Ruby syntax questions Am 25.01.2013 05:23, schrieb Matthew Kerwin: > Note: a regular rubyist would probably just write: `base ** exponent` Or (as an exercise) at least without using the while loop, e.g. def pow(base, exponent) result = 1 exponent.times { result = result * base } result end Scott, you might also look into Integer#upto and Numeric#step. --