i am trying to convert my function i want it do the same as:
def get_num(function, starting_index):
yield starting_index
while True:
yield function(starting_index)
starting_index = function(starting_index)
so im i want the new function to return a genexp that does exactly the same, of course without using 'yield', and all in one line, is possible? Thanks