Skip to content

Instantly share code, notes, and snippets.

@carson-katri
Created July 16, 2019 23:02
Show Gist options
  • Save carson-katri/bd392a42ab4868b3d7bb347dd59813b0 to your computer and use it in GitHub Desktop.
Save carson-katri/bd392a42ab4868b3d7bb347dd59813b0 to your computer and use it in GitHub Desktop.
@_functionBuilder
struct GreetingBuilder {
static func buildBlock(_ items: String...) -> [String] {
return items.map { "Hello \($0)" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment