Contents

ApolloZhu/BoolBuilder

A Swift 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.

Package Metadata

Repository: ApolloZhu/BoolBuilder

Stars: 13

Forks: 0

Open issues: 1

Default branch: main

Primary language: swift

License: MIT

README: README.md