Programming languages enthusiast. Author of Learn Type Driven Development: https://www.packtpub.com/application-development/learn-type-driven-development
Hi, thank you for this write-up. I don't see the definition of the getFuel function. Is it the same as the fuel_calculator function? Btw, Reason has a cool feature where operators can be treated as functions by enclosing them in parentheses. So instead of:
Hi, thank you for this write-up. I don't see the definition of the
getFuel
function. Is it the same as thefuel_calculator
function? Btw, Reason has a cool feature where operators can be treated as functions by enclosing them in parentheses. So instead of:You can do:
Yes, correct. Thanks for pointing.