3 ms·
This is the lambda syntax in Ruby: Defining a lamba `foo = ->(x) { x * x }` Calling it `foo[10]` or `foo.call(10)` I don't see anything hacky about that at a
by sjtgraham 10y ago
This is the lambda syntax in Ruby:
Defining a lamba `foo = ->(x) { x * x }`
Calling it `foo[10]` or `foo.call(10)`
I don't see anything hacky about that at all.