Skip to content

Instantly share code, notes, and snippets.

@lrytz
Last active March 12, 2020 09:23
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 lrytz/3f8292a94d80e49f1a820902df1e8043 to your computer and use it in GitHub Desktop.
Save lrytz/3f8292a94d80e49f1a820902df1e8043 to your computer and use it in GitHub Desktop.
given object intOrd extends Ord[Int] {}
given object _ extends Ord[Int] {}
given object extends Ord[Int] {}
given val intOrd: Ord[Int] = ...
given val _ : Ord[Int] = ...
given val : Ord[Int] = ...
given def intListOrd(using Ord[Int]): Ord[List[Int]] = ...
given def _(using Ord[Int]): Ord[List[Int]] = ...
given def (using Ord[Int]): Ord[List[Int]] = ...
given def listOrd[T](using ord: Ord[T]): Ord[List[T]] = ...
given def _ [T](using Ord[T]): Ord[List[T]] = ...
given def [T](using Ord[T]): Ord[List[T]] = ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment