tqdm / tqdm.cpp

C++ port of tqdm
Other
318 stars 29 forks source link

Super simple range implementation #32

Closed CrazyPython closed 8 years ago

CrazyPython commented 8 years ago

C++14 'cause I don't know the return type of tqdm::tqdm.

auto inline range(int n) {
    return tqdm::tqdm(std::vector<int>({0, ..., n - 1}));
}

inline is important so that people can use range without losing any speed.

Also @casperdcl looks like it's just me and you for the next couple days... maybe we should work on that ad to get another dev?

casperdcl commented 8 years ago

no, range generator (already implemented) much more preferable to range iterator.

CrazyPython commented 8 years ago

@casperdcl huh? this is just a shorthand...