Swift โฉ Attributes โฉ Result Builders โฉ
typealias Component = String // result type: String static func buildFinalResult(_ component: Component) -> String { return component } // result type: Int static func buildFinalResult(_ component: Component) -> Int { return component.count }
Swift Senpai โฉ Swift Result Builders: The Basics You Need to Know!
Last updated 3 years ago
Was this helpful?