Created
March 29, 2018 06:31
-
-
Save agoldis/f1510bb8aee10b3b38ff61e1347f9f2a to your computer and use it in GitHub Desktop.
Comments frustrated - naive example
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<ResultType> resultsList = new ArrayList<>(); | |
| final Double TWO = new Double(2); | |
| final Double LIMIT = new Double(10); | |
| for(ItemType item: itemsList) { | |
| if(Math.pow(item.x, TWO) + Math.pow(item.y, TWO) < Math.pow(LIMIT, TWO)) { | |
| resultsList.add(item.toResultType()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment