Skip to content

Instantly share code, notes, and snippets.

@Marenz
Created November 19, 2016 14:10
Show Gist options
  • Save Marenz/b3426d7b59be25b12a49a00c9549b11a to your computer and use it in GitHub Desktop.
Save Marenz/b3426d7b59be25b12a49a00c9549b11a to your computer and use it in GitHub Desktop.
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