fetching from a specified index in a set using python
- by tipu
I'm using pagination on a values from a set. So what this results in is me needing to get values from x to x + 20 which can be in the middle of a set with 50,000 entries. Is it possible that I can fetch these values by grabbing by the space in the set?
Would it make more sense to do
result = []
my_dict = dict(very_big_set)
for i in range(30000, 30020)
result.append(my_dict[i])