Re: string range membership

ruby -e “p (‘1’…‘10’).find {|x| x == ‘2’}”
“2”

It wont be as fast as Range#include, but you can’t put the equivalent
into Range without giving it knowledge about how String#succ works.
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################