a set of result-builder
Please open PR if you have nice builder.
To create an array from blocks and expressions
let array: [MyElement] = buildArray {
constants
if flag {
option
}
additionalElement
}
or
func doSomething(@ArrayBuilder<String> _ value: () -> [String]) {
let array: [String] = value()
...
}