### How to pass method to block in Crystal

How to pass plus into calculate method? def calculate(&block : (Float64, Float64) -> Float64) block.call(1.1, 2.2) end def plus(a, b) a + b end calculate{|a, b| plus a, b} This won’t work calculate ->plus calculate &plus P.S. Another question, how to make it to work for all numbers? Not just Float64. This code won’t compile…

Details