Skip to content

Instantly share code, notes, and snippets.

@bhelyer
Created February 11, 2010 22:42
Show Gist options
  • Save bhelyer/302060 to your computer and use it in GitHub Desktop.
Save bhelyer/302060 to your computer and use it in GitHub Desktop.
new st((void delegate(SomePropType, OtherPropType) yield)
{
foreach (c; SomeCollection) {
if (c.SomeProperty >= someValue * 2) continue;
yield(c.SomeProperty, c.OtherProperty);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment