Skip to content

Instantly share code, notes, and snippets.

@AlexanderNey
Last active June 15, 2016 12:06
Show Gist options
  • Save AlexanderNey/aaf3dfcfe3e9486a6d09 to your computer and use it in GitHub Desktop.
Save AlexanderNey/aaf3dfcfe3e9486a6d09 to your computer and use it in GitHub Desktop.
ARTICLE Function Composing Swift 2.0 - 1
func parseJSONFromNSData(data: NSData) -> JSON { ... }
func validateJSONResponse(json: JSON) -> (JSON, NSError?) { ... }
func unmarshalJSON<T : JSONUnmarshallable>(json: JSON, type: T.Type) -> T { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment