From: Yukihiro Matsumoto Date: 2005-03-18T02:12:23+09:00 Subject: Re: Array#nitems and Object#nil? Hi, In message "Re: Array#nitems and Object#nil?" on Fri, 18 Mar 2005 01:34:49 +0900, Florian Gross writes: |> enum.inject(0){|i,j| j ? i + 1 : i } |> |> No array construction, bit harder to read than #count. | |Is it too rare to deserve a built-in short cut? I'm not sure. I've never had need for this operation before in the 10+ years of Ruby programming though. matz.