Dict
needs the first type to be comparable. What does that mean?Int
, Float
, Char
, String
, Tuple comparable comparable
and List comparable
are comparable
types.
So you need to convert Fruit into a comparable type like Tuple Int String
.