allan.conda
03/09/2022, 1:29 AMJoffrey
03/09/2022, 8:11 AMtoString
returns a String, while the underlying value of an inline class can be anything. You could say you want to use the toString
of the underlying value, but it might be beneficial to override toString in a different way so you distinguish the wrapper from the inner typeJoffrey
03/09/2022, 8:16 AMi*SIZE+j
, and in that case you would want toString
to yield something like (i,j)
, not the underlying 1D index