I want to be able accept a block argument, which takes one or two Int arguments
This code does not work, but expresses my intent.
def initialize(*input, &block : (Int32 | (Int32, Int32)) -> Int32)
@input = input
@calc = block
end
This works for a block with one Int argument. How do I make it work with one or two Int arguments?