Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
error8 swift
func performOperation(operation: () throws -> Int) -> Int {
return try operation()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment