Module: RLet::Functional::Compose

Defined in:
lib/rlet/functional.rb

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



17
18
19
# File 'lib/rlet/functional.rb', line 17

def *(other)
  Proc.new { |x| call(other.call(x)) }
end

#|(other) ⇒ Object



20
21
22
# File 'lib/rlet/functional.rb', line 20

def |(other)
  Proc.new { |x| other.call(call(x)) }
end