Skip to content

Instantly share code, notes, and snippets.

@Athosone
Last active September 19, 2018 14:20
Show Gist options
  • Save Athosone/e6b076e9da7eae43c51dc403ce1e392b to your computer and use it in GitHub Desktop.
Save Athosone/e6b076e9da7eae43c51dc403ce1e392b to your computer and use it in GitHub Desktop.
Debug Log message
// We apply curry to the log message func
let logCurried = curry(logMessage)
// logCurried can be represented like this: logCurried -> (LogLevel) -> (String) -> Void
let debug = logCurried(.debug)
// debug can be represented like this: debug -> (String) -> Void
debug("Log debug")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment