Blocks, procs and lambdas. 9/21


#1



But it works like this :


def bonjour(phrase)
yield
end
phrase = Proc.new do
puts "Bonjour !" 
end
[bonjour].select!(&phrase)

With this in the editor :

wrong number of arguments (0 for 1)
I don't understand more.


Replace this line with your code.


#2

Please give the exercise link of the french version exercise you are doing. Thank you!


#3

Ok.
I will do it now.
Thank you.