/ Published in: Ruby
Public domain.
Expand |
Embed | Plain Text
def find_longest_value(array) return array.sort { |x,y| y.length <=> x.length }.first end
You need to login to post a comment.
Public domain.
def find_longest_value(array) return array.sort { |x,y| y.length <=> x.length }.first end
You need to login to post a comment.