module DaftFunkt::Filter

Public Class Methods

fn() click to toggle source
# File lib/daft_funkt/filter.rb, line 3
def self.fn
  lambda do |fn|
    lambda do |collection|
      collection.select { |item| fn.call(item) }
    end
  end
end