In Ruby, you can do this:
prc = lambda{|x, y=42, *other|}
prc.parameters
In particular, I am interested to know the names of the parameters xand yin the example above.
In Crystal, I have the following situation:
def my_method(&block)
end
How to do it in Crystal?
source
share