Pea wrote:
> [...]
> ff is another example (of my nubiness). it shows niftiness of bang methods, chains, and the underutilized all?,

don't forget the any? :)

puts r.first[0...(0..r.first.size).find{|i| r.any?{|s|r.first[0..i]!=s[0..i]}}]

cheers

Simon