-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to dispatch on molar mass? #662
Comments
Ok like 50th thing I tried worked but I still don't get why the above doesn't. If I define |
This doesn’t work for two reasons:
This doesn’t work because molar_mass_unit = Unitful.𝐌 * Unitful.𝐍^-1 |
We should have better documentation for this. I think we should
|
Yeah definitely add another example to the dispatch part. Its a super useful and cool feature. |
Hello,
I'd like to differentiate my functions based on if the user provided a
Mass
dimension or a molar mass dimension. Unitful already has theUnitful.Mass
to make it easy to dispatch on mass but I've been majorly struggling to dispatch on molar mass. My attempt is below:I also tried using
The text was updated successfully, but these errors were encountered: