ugly ass code
collection.collect { |a|
transform(a)
}.reduce do |a, b|
a || b
end
more beautifuller
collection.find { |a|
transform(a)
}
ugly ass code
collection.collect { |a|
transform(a)
}.reduce do |a, b|
a || b
end
more beautifuller
collection.find { |a|
transform(a)
}