Thanks @yakir12, Union sure solves it. ![]()
I am still curious about why the type hierarchy was not chosen so that Integer <: Rational, probably a performance bottleneck?
Thanks @yakir12, Union sure solves it. ![]()
I am still curious about why the type hierarchy was not chosen so that Integer <: Rational, probably a performance bottleneck?