Created
March 9, 2017 02:37
-
-
Save pedrofurla/2d660f5768757bdc21414aea3728a28d 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
| list.map( x => { | |
| val y = hardComplexStuff(x) | |
| if( (f(y) && g(y)) === false ) true else false | |
| }) | |
| // Why why someone would do the above vs: | |
| list.map{ x => | |
| val y = hardComplexStuff(x) | |
| !f(y) && !g(y) | |
| } | |
| // Disclaimer: These multiple occurences of what I consider stink mixed in *one* example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment