I need some help with the definition of a function, using the unitful package.
i know that the units have the dimensions inside the type, and i need to access that information.
uniful.jl provides the function dimension(T) and dimension(x::T), that gives the correct dimension information, so that:
dimension(u"L/mol") == dimension(123.0u"m^3/kmol) true
i need some help defining a function that accepts a unitful type with specific dimensions, something like this:
using Unitful function testdim(x::T) where dimension(T) == dimension(1.0u"L/mol") return 1 end