Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created August 5, 2018 19:27
Show Gist options
  • Save vialyx/337fc55d80ea835727526a2f70655f90 to your computer and use it in GitHub Desktop.
Save vialyx/337fc55d80ea835727526a2f70655f90 to your computer and use it in GitHub Desktop.
/*
{ (parameters) -> return type in
statements
}
*/
let BoolClosure: (Bool) -> Void = { parameter in
print("\(parameter)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment