ResultBuilderKit

1.3.0

Set of result builder
FluidGroup/ResultBuilderKit

What's New

1.3.0

2022-07-06T09:17:56Z

Full Changelog: 1.2.0...1.3.0

ResultBuilderKit

a set of result-builder

Please open PR if you have nice builder.

ArrayBuilder

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()
  ...
}

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 03:03:09 GMT-0900 (Hawaii-Aleutian Daylight Time)