def create(): return rx.generate(0, lambda x: x <= 3, lambda x: x + 1, ) \ .pipe(ops.repeat(2))
def forever(): return generate(None, lambda _: True, lambda _: None)
def create(): return rx.generate(0, lambda x: True, lambda x: _raise(ex), )
def create(): return rx.generate(0, lambda x: True, lambda x: x + 1, )
def create(): return rx.generate(0, lambda x: x <= 3, lambda x: x + 1, )
def create(): return rx.generate(0, lambda x: _raise('ex'), lambda x: x + 1, )
def create(): return rx.generate( 0, lambda x: True, lambda x: x + 1, )
def create(): return rx.generate( 0, lambda x: True, lambda x: _raise(ex), )
def create(): return rx.generate( 0, lambda x: _raise('ex'), lambda x: x + 1, )
def create(): return rx.generate( 0, lambda x: x <= 3, lambda x: x + 1, )