From: Lars Schirrmeister Date: 2011-05-11T05:33:20+09:00 Subject: Re: Enumerable#find returns an enumerator? The find method on an array takes a block and returns an enumerator if no block is given. The value you pass to the find method is not the value you want to find but the value which is returned if no block evaluates to true. Lars Am 10.05.2011 um 20:48 schrieb Roger Pack: > Hello all. > I would have expected that > > [1,2,3].find(3) > > just return me the element 3, not an enumerator, since it will at most > return me one item, so it doesn't seem very "enumerable" to me (at most > one item). > > Thoughts? > -r > > -- > Posted via http://www.ruby-forum.com/. >