Skip to content

Instantly share code, notes, and snippets.

@jschementi
Created July 20, 2010 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jschementi/482344 to your computer and use it in GitHub Desktop.
Save jschementi/482344 to your computer and use it in GitHub Desktop.
Summer of "Iron"
load_assembly "System.Core"
using_clr_extensions System::Linq
# ...
products.
where(lambda { |p| p.units_in_stock == 0 }).
each { |x| puts x.product_name }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment