From: "Jan E." Date: 2012-09-21T21:16:33+09:00 Subject: Re: Proc and lambdas Hi, This is not a homework forum. Apart from that, your description is far too vague to make anything useful out of it. Procs are just a tool, you can use them in all kinds of ways. So saying "find the word using a proc" is like saying "sort an array using methods". The usual solution to "get the smallest/biggest value" is to use the method Enumerable#max_by (or min_by): http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-max_by words = [ 'a', 'abc', 'abcde', 'ab' ] puts words.max_by &:length -- Posted via http://www.ruby-forum.com/.