Nepta / tqdm-lua

(unofficial) tqdm-like lua pretty progress bar
MIT License
2 stars 0 forks source link

tqdm.iterator #1

Open Nepta opened 3 years ago

Nepta commented 3 years ago

using this lib should be as easy as typing

for i, v in tqdm.ipairs(t) do
   heavyStuff(i,v)
end
Nepta commented 3 years ago

maybe add tqdm.range:

for i in tqdm.range(1,10000) do
   stuff(i)
end

and possibly a tqdm.pairs ? if we can't easily compute size of the table only make a spinner without ETA or progressing bar

Nepta commented 3 years ago

range and ipairs done

Nepta commented 3 years ago

would consider tqdm.pairs if anybody want it