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
| package main; | |
| import rx.Observable; | |
| import rx.schedulers.Schedulers; | |
| import java.io.IOException; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.stream.IntStream; | |
| public class BackpressureDemo { |
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
| package io.strati.functional; | |
| import java.util.NoSuchElementException; | |
| import java.util.function.Consumer; | |
| import java.util.function.Function; | |
| import java.util.function.Predicate; | |
| import java.util.function.Supplier; | |
| import java.util.stream.Stream; | |
| /** |
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
| import rx.lang.scala.Observable | |
| import rx.lang.scala.subjects.BehaviorSubject | |
| object LookAndSay { | |
| def main(args: Array[String]) { | |
| val pipe = BehaviorSubject(Observable.just('1')) | |
| pipe.map(next).foreach(x => { | |
| x.doOnCompleted(println()).foreach(print(_)) | |
| pipe.onNext(x) |
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
| #include <stdio.h> | |
| #include <string.h> | |
| void print_error(int); | |
| int main(int argc, char *argv[]) | |
| { | |
| int err_num; | |
| if(argc > 1) { | |
| while(--argc > 0 && ++argv) { |