Last active
September 19, 2018 14:20
-
-
Save Athosone/e6b076e9da7eae43c51dc403ce1e392b to your computer and use it in GitHub Desktop.
Debug Log message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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