class Mercury::Cps::Seq
Public Instance Methods
chain(proc=nil, &block)
click to toggle source
# File lib/mercury/cps/seq.rb, line 16 def chain(proc=nil, &block) @m = m.and_then(&(proc || block)) end
m()
click to toggle source
# File lib/mercury/cps/seq.rb, line 12 def m @m ||= Cps.identity # we need an initial Cps to chain onto end