-
What do you call the
->
operator as in the following?->(...) do ... end
-
Aren’t the following snippets equivalent?
succ = ->(x) {x + 1} succ = lambda {|x| x + 1}
What do you call the ->
operator as in the following?
->(...) do
...
end
Aren’t the following snippets equivalent?
succ = ->(x) {x + 1}
succ = lambda {|x| x + 1}