Blocks and procs?


its telling me it dont look quit right.

floats = [1.2, 3.45, 0.91, 7.727, 11.42, 482.911]

Write your code below this line!

Heres the code.....

round_down = {|o| o.floor }

Write round_down = proc.New {|o| o.floor }your code above this line!

ints = floats.collect(&round_down)

Replace this line with your code.


If you read the intro to the lesson carefully
you would have seen that you have to use an UPPERCASE-P


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