Advertisement
Guest User

test

a guest
Aug 27th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. a='9';
  2. b={};
  3. function bs()
  4.   pcall(function()
  5.     table.insert(b,coroutine.create(bs));
  6.     for i=1,#b do
  7.       coroutine.resume(b[i]);
  8.     end
  9.     for i=1,a do
  10.       a=a:gsub('9',a);
  11.       print(a);
  12.     end
  13.     coroutine.yield();
  14.   end);
  15. end;
  16.  
  17. bs();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement