Require ‘beethoven/proc` to monkey patch Proc with these composition helpers.
3 4 5
# File 'lib/beethoven/proc.rb', line 3 def *(other) -> x { call(other.call(x)) } end
7 8 9
# File 'lib/beethoven/proc.rb', line 7 def |(other) -> x { other.call(call(x)) } end