Module: Hammock::LambdaComposition::ClassMethods

Defined in:
lib/hammock/lambda_composition.rb

Class Method Summary collapse

Class Method Details

.compose(f, g) ⇒ Object



12
13
14
# File 'lib/hammock/lambda_composition.rb', line 12

def self.compose f, g
  L{|*args| f[g[*args]] }
end