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

https://github.com/fluidgroup/resultbuilderkit

Set of result builder
https://github.com/fluidgroup/resultbuilderkit

Last synced: 7 months ago
JSON representation

Set of result builder

Awesome Lists containing this project

README

          

# ResultBuilderKit

a set of result-builder

Please open PR if you have nice builder.

## ArrayBuilder

To create an array from blocks and expressions

```swift
let array: [MyElement] = buildArray {

constants

if flag {
option
}

additionalElement

}
```

or
```swift

func doSomething(@ArrayBuilder _ value: () -> [String]) {
let array: [String] = value()
...
}
```