SHOW:
|
|
- or go back to the newest paste.
1 | local function doUntil(f, check) | |
2 | while not check(f()) do | |
3 | sleep(6) | |
4 | end | |
5 | end | |
6 | ||
7 | - | doUntil(robot.drain, function(i) return i end) |
7 | + | local function someLongfunction() |
8 | -- stuff | |
9 | -- stuff-- stuff | |
10 | -- stuff | |
11 | -- stuff-- stuff | |
12 | -- stuff-- stuff-- stuff | |
13 | -- stuff | |
14 | -- stuff | |
15 | -- stuff-- stuff | |
16 | end | |
17 | ||
18 | doUntil(someLongFunction, function(i) return i end) | |
19 | ||
20 | taskTwo() | |
21 | -- And so on. |