Can someone point out what im doing wrong here?


Here at the amusement park, you have to be four feet tall

or taller to ride the roller coaster. Let's use .select on

each group to get only the ones four feet tall or taller.

group_1 = [4.1, 5.5, 3.2, 3.3, 6.1, 3.9, 4.7]
group_2 = [7.0, 3.8, 6.2, 6.1, 4.4, 4.9, 3.0]
group_3 = [5.5, 5.1, 3.9, 4.3, 4.9, 3.2, 3.2]

Complete this as a new Proc

over_4_feet = { |u| >= 4 }

Change these three so that they use your new over_4_feet Proc


Replace this line with your code.


This is kind of strange. Why did you moved select from the to the proc?

Your proc is correct, you just need to move select back to the original position.

over_4_feet = { |u| u >= 4 }

Do you have a problem with understanding select and Proc or it was just an accident?


Ummm im aware that the proc is a block object essentially but i was trying to summon the effect of the block object similar to how you call a function i guess.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.