Skip to content

Instantly share code, notes, and snippets.

@ryoppy
Created December 22, 2014 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryoppy/168b1f78ee49c68bed7a to your computer and use it in GitHub Desktop.
Save ryoppy/168b1f78ee49c68bed7a to your computer and use it in GitHub Desktop.
view boundがdepなったからcontext boundで書こうと思わず、普通にimplicitで書くべし
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