Skip to content

Instantly share code, notes, and snippets.

@lu4nm3
Last active May 15, 2020 09:01
Show Gist options
  • Save lu4nm3/04b0e50cfed4c9b9117e054896276e17 to your computer and use it in GitHub Desktop.
Save lu4nm3/04b0e50cfed4c9b9117e054896276e17 to your computer and use it in GitHub Desktop.
def dairyAndGlutenFree[T](items: List[T])(implicit D: DairyFree[T], G: GlutenFree[T]): List[T] = {
items.filter(item => D.isDairyFree(item) && G.isGlutenFree(item))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment