From: Austin Ziegler Date: 2002-07-09T04:52:27+09:00 Subject: Re: is there a better string.each? On Tue, 9 Jul 2002 04:41:04 +0900, Tobias Reif wrote: > Tom Sawyer wrote: >> but that left us with no equivalent to the fictional #each_chr, > so what about a simple RCR, asking for > String#chars > so that we can do > 'foo'.chars #> ["f","o","o"] > and > 'foo'.chars.each do |char| > perhaps plus String#each_char? I think that this could work. I also think that an RCR should be done so that $/ (and the argument to String#each) can be a regexp. -austin -- Austin Ziegler, austin@halostatue.ca on 2002.07.08 at 15.51.04