Swiftpack.co - muukii/ResultBuilderKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by muukii.
muukii/ResultBuilderKit 1.1.0
Set of result builder
⭐️ 4
🕓 2 weeks ago
.package(url: "https://github.com/muukii/ResultBuilderKit.git", from: "1.1.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()
  ...
}

GitHub

link
Stars: 4
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.1.0
2 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/muukii/ResultBuilderKit/compare/1.0.0...1.1.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics