Skip to content

Instantly share code, notes, and snippets.

@powellnathanj
Created July 23, 2009 11:42
Show Gist options
  • Save powellnathanj/152787 to your computer and use it in GitHub Desktop.
Save powellnathanj/152787 to your computer and use it in GitHub Desktop.
user=> (filter (fn[n](> n 2)) '(1 2 3))
(3)
>> [1, 2, 3].select{|n| n > 2}
=> [3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment