Last active
May 22, 2020 12:00
-
-
Save ruurtjan/6979f5ebb827c7c5c57e74ce97066e96 to your computer and use it in GitHub Desktop.
functional-dsl-blog-1.scala
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
val filter = EmailFilter.senderIsNot(Address("[email protected]")) && | |
EmailFilter.bodyContains("Unsubscribe") | |
val newsletters = emails.filter(filter.run) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment