Skip to content

ApolloZhu/BoolBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Swift resultBuilder for building a Bool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages