SHOW:
|
|
- or go back to the newest paste.
1 | - | function cunpack(t,iter,prevKey) |
1 | + | function cunpack(t,pk) |
2 | - | iter = iter or pairs(t) |
2 | + | local k,v = next(t,pk) |
3 | - | local k,v = iter(t,prevKey or nil) |
3 | + | |
4 | return v,cunpack(t,k) | |
5 | - | return v,cunpack(t,iter,k) |
5 | + | |
6 | end |