Skip to content

Instantly share code, notes, and snippets.

@stephen-lazaro
Created October 4, 2018 19:18
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 stephen-lazaro/b958c2aeadc675a7b4f2311ab64c59d0 to your computer and use it in GitHub Desktop.
Save stephen-lazaro/b958c2aeadc675a7b4f2311ab64c59d0 to your computer and use it in GitHub Desktop.
implicit class altOps[F[_]: Alternative](x: F[A]) {
  def <+>(y: F[A]): F[A] = Alternative[F].combineK(x, y)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment