From: Ryan Leavengood Date: 2005-12-21T07:25:37+09:00 Subject: Re: iterate chars in a string On 12/20/05, Bob Showalter wrote: > > Others have suggested various iterators, but why not use standard jcode lib? > > require 'jcode' > str.each_char { |c| puts c } In case anyone is curious, the above just uses scan(/./m), and is even slower in my benchmark because of the extra method calls. But in reality all are quite fast enough, and the performance differences aren't all that significant. Ryan