require 'continuation'
class String
def |(x)
x.()
end
end
def ┃
-> { $c.call($c) }
end
class Proc
def |(_)
$c = callcc {|c| c }
end
end
$c ||= callcc {|c| c }
Slide 4
Slide 4 text
require 'さっきのやつ'
puts 'before'
%: :|┃
p 'after'
Slide 5
Slide 5 text
require 'さっきのやつ'
puts 'before'
%: :|┃
p 'after'
Slide 6
Slide 6 text
require 'さっきのやつ'
puts 'before'
(%: :).|(┃)
p 'after'
Slide 7
Slide 7 text
require 'continuation'
class String
def |(x)
x.()
end
end
def ┃
-> { $c.call($c) }
end
class Proc
def |(_)
$c = callcc {|c| c }
end
end
$c ||= callcc {|c| c }
require 'continuation'
class String
def |(x)
x.()
end
end
def ┃
-> { $c.call($c) }
end
class Proc
def |(_)
$c = callcc {|c| c }
end
end
$c ||= callcc {|c| c }