A Swift resultBuilder for building a Bool
BoolBuilder
@resultBuilder
for building a Bool
.
Example
import BoolBuilder
let condition: Bool = all {
any {
conditionA
conditionB
.inverted
either {
conditionC
} or: {
conditionD
}
}
conditionE
}
Acknowledgements
Thanks to @Vince14Genius for the idea and API feedback.