An open API service indexing awesome lists of open source software.

https://github.com/apollozhu/boolbuilder

A Swift resultBuilder for building a Bool.
https://github.com/apollozhu/boolbuilder

Last synced: about 1 year ago
JSON representation

A Swift resultBuilder for building a Bool.

Awesome Lists containing this project

README

          

# BoolBuilder

`@resultBuilder` for building a `Bool`.

## Example

```swift
import BoolBuilder

let condition: Bool = all {
any {
conditionA
conditionB
.inverted

either {
conditionC
} or: {
conditionD
}
}
conditionE
}
```

## Acknowledgements

Thanks to [@Vince14Genius](https://github.com/vince14genius) for the idea and API feedback.