Created
May 24, 2013 16:05
-
-
Save vsavkin/5644551 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var inputs = | |
query("#query"). | |
onKeyUp. | |
map((event) => event.target.value). | |
where((text) => text.length > 2). | |
transform(new Throttle(500)). | |
distinct(); | |
inputs. | |
map(queryWikipedia). | |
transform(new Latest()). | |
map((json) => json[1]). | |
where((list) => ! list.isEmpty). | |
listen(updateResults); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment