From: Curt Sampson Date: 2008-02-07T11:38:49+09:00 Subject: Re: Array Practice On 2008-02-07 11:15 +0900 (Thu), Christopher Dicely wrote: > ...the most elegant of the way I've come up with of doing exactly > what you want uses ==, *, uniq, collect, find_all, and size, and the > function body fits on a single line without semi-colons. Hm. My function uses: inject, assoc, and, or, <<, [...]. The function body fits easily on an 80 column line with one semicolon, if I shorten the variable name "result" to "r". cjs -- Curt Sampson +81 90 7737 2974 Mobile sites and software consulting: http://www.starling-software.com