Line 125: |
Line 125: |
| e = collection[i] | | e = collection[i] |
| end | | end |
− | if pred(e, i) then | + | if pred and not pred(e, i) then |
| + | i = i + 1 |
| + | else |
| if pre and preFlag then | | if pre and preFlag then |
| local value = pre(e, i) | | local value = pre(e, i) |
Line 142: |
Line 144: |
| return true | | return true |
| end | | end |
− | i = i + 1
| |
| end | | end |
| current = nil | | current = nil |