BoolBuilder

main

A Swift resultBuilder for building a Bool.
ApolloZhu/BoolBuilder

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.

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Nov 03 2024 11:24:05 GMT-1000 (Hawaii-Aleutian Standard Time)