Robert Klemme schreef op 4-6-2014 12:58:
> On Wed, Jun 4, 2014 at 12:39 PM, Roelof Wobben <r.wobben / home.nl> wrote:
>
>> I noticed one things. The output shows the arrays but not in a array as I
>> expected.
> What do you mean by that?  Output is as expected:
>
> irb(main):008:0> data.select{ |data2| data2[:sex] == :f }
> => [{:age=>24, :sex=>:f}, {:age=>23, :sex=>:f}]
>
> Cheers
>
> robert
>

Wierd, when I do it on http://www.compileonline.com/execute_ruby_online.php
I see this output :

{:age=>24, :sex=>:f} {:age=>23, :sex=>:f} so no array it seems.

Roelof