Blocks and procs?


#1


https://www.codecademy.com/courses/ruby-beginner-en-L3ZCI/1/2?curriculum_id=5059f8619189a5000201fbcb

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 = proc.new {|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.


#2

@codecrimson
If you read the intro to the lesson carefully
you would have seen that you have to use an UPPERCASE-P
like
Proc.new


#3

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