Skip to content

Instantly share code, notes, and snippets.

@mihyaeru21 mihyaeru21/
Last active Aug 29, 2015

What would you like to do?
# -*- coding: utf-8 -*-
from __future__ import print_function
from rx import Observable
(Observable.from_(range(1, 10))
.map(lambda x: x ** 2)
.filter(lambda x: x % 2 == 0)
on_next = print,
on_completed = lambda: print('ok'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.