Last active
May 15, 2020 09:01
-
-
Save lu4nm3/04b0e50cfed4c9b9117e054896276e17 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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