module DaftFunkt::Map

Public Class Methods

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