From: Aldric Giacomoni Date: 2009-10-26T21:21:35+09:00 Subject: Re: Array Number of Leaves Robert Klemme wrote: > 2009/10/26 salai : >> Dear Rubyist, >> >> I want to count array list [1,2,3,[4],5] ---> # 5 leaves Out of sheer curiosity.. [1,2,3,[4],5].size # --> 5 Not what you need? -- Posted via http://www.ruby-forum.com/.