Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Filter = lambda do |array, &block|
- array.select(&block)
- end
- a = [1,2,3,4]
- n = Proc.new do |b|
- b.even?
- end
- Filter.call(a,n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement