Making generic makes it clear it can't use any specialness of the concrete type. Parametric code helps document this.
-
-
-
Right. In this case I had a (Double,Double) where I sorted by ._1 and wanted to sort by ._2. The generic form was (X,Double). Yay types!
-
Ah yes, (Double, Double), the Tim Hortons type signature.
End of conversation
New conversation -
-
-
Theorems for free!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.