Created
November 19, 2016 14:10
-
-
Save Marenz/b3426d7b59be25b12a49a00c9549b11a to your computer and use it in GitHub Desktop.
This file contains 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
class SomeClass | |
{ | |
void someFunc ( ) | |
{ | |
int[] some_array; | |
import std.algorithm; | |
bool func ( int f ) | |
{ | |
return f < 10; | |
} | |
auto res1 = some_array.filter!func; | |
bool func2 ( int f ) | |
{ | |
return f < 20; | |
} | |
auto res2 = some_array.filter!func2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment