Created
December 22, 2014 09:57
-
-
Save ryoppy/168b1f78ee49c68bed7a to your computer and use it in GitHub Desktop.
view boundがdepなったからcontext boundで書こうと思わず、普通にimplicitで書くべし
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> def s[A: ({type λ[A] = A => Ordered[A]})#λ](xs: List[A]): List[A] = xs.sorted | |
s: [A](xs: List[A])(implicit evidence$1: A => scala.math.Ordered[A])List[A] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment