Created
May 10, 2018 15:54
-
-
Save Winwardo/abf5e9611b722c24ba1ee68f08f66c98 to your computer and use it in GitHub Desktop.
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
const exampleFunction1 = (n) => { | |
if (!predicate1) { | |
return 7 | |
} | |
if (predicate2) { | |
sideEffect1(n) | |
return transformer2(transformer1(arg1, arg2, n), arg1) | |
} else { | |
return transformer2(transformer5(n), arg2) | |
} | |
} |
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
const exampleFunction1 = (n) => { | |
if (!predicate1) { | |
return 7 | |
} | |
if (predicate2) { | |
sideEffect1(n) | |
return transformer2(transformer1(arg1, arg2, n), arg1) | |
} | |
return transformer2(transformer5(n), arg2) | |
} |
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
const exampleFunction1 = (n) => { | |
if (!predicate1) { | |
return 8 | |
} | |
if (predicate2) { | |
log("iteration first branch for %d", n) | |
sideEffect1(n) | |
return transformer2(transformer1(arg1, arg2, n), arg1) | |
} else { | |
return transformer2(transformer5(n), arg2) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment