Creating a list with multiple units of measurements of floats in F#
问题 So, I've tried to get around this in various ways, but I just can't make this work. Is there any way to make a list that contains values of varying units of measurement (all based on floats)? For example: let myList = [0.07<ms>; 0.9; 7.2<mm>;] As they are treated as different types, you cannot put them in the same list. I tried declaring the list as let myList : float<_> list = ... , and giving dimensionless numbers a unit of measurement, but I still got a typing error: expecting float<'u>