summaryrefslogtreecommitdiff
path: root/test/-ext-/required.rb
blob: 70514355ffecc9b3c89cfbd67cd54c1c50fc48b2 (plain)
1
2
3
4
5
6
7
8
9
10
require 'continuation'
cont = nil
a = [*1..10].reject do |i|
  callcc {|c| cont = c} if !cont and i == 10
  false
end
if a.size < 1000
  a.unshift(:x)
  cont.call
end