1. What do you call the -> operator as in the following?

    ->(...) do
      ...
    end
    
  2. Aren’t the following snippets equivalent?

    succ = ->(x) {x + 1}
    succ = lambda {|x| x + 1}
    

3 Answers
3

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *