Created
June 21, 2021 16:04
-
-
Save IvanVergiliev/781a772febab0dd7515677be4b76f249 to your computer and use it in GitHub Desktop.
Fold a list of predicates
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 andPredicates: Array[Column] = parseAndPredicates(...) | |
val compositePredicate: Column = andPredicates.foldLeft(lit(true))((x, y) => x && y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment