Sha256: 725214033a735491c1d15d10b890232ca34b2ae80d38bd8b2b66a296c7e92b20

Contents?: true

Size: 146 Bytes

Versions: 10

Compression:

Stored size: 146 Bytes

Contents

module Kernel

  # A nice shorthand for lambda.
  #
  #   adder = fn { |x,y| x + y }
  #   adder[1,2]  #=> 3
  #
  alias_method :fn, :lambda

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.0.1 lib/core/facets/proc/fn.rb
facets-2.0.0 lib/core/facets/proc/fn.rb
facets-2.0.2 lib/core/facets/proc/fn.rb
facets-2.0.5 lib/core/facets/proc/fn.rb
facets-2.1.0 lib/core/facets/proc/fn.rb
facets-2.1.1 lib/core/facets/proc/fn.rb
facets-2.1.2 lib/core/facets/proc/fn.rb
facets-2.0.3 lib/core/facets/proc/fn.rb
facets-2.0.4 lib/core/facets/proc/fn.rb
facets-2.1.3 lib/core/facets/proc/fn.rb