Observable.from(new Integer[]{1,2,3,4,5}) .reduce(new Func2<Integer, Integer, Integer>() { @Override public Integer call(Integer t1, Integer t2) { return t1+t2; } }).subscribe(new Action1<Integer>() { @Override public void call(Integer t) { // t = 15 } });
Tags
Categories
- Android (4)
- Apache (3)
- async.js (2)
- CSS (2)
- d3.js (1)
- Eclipse (1)
- GIMP (1)
- git (4)
- github (1)
- Grafika / foto (1)
- HTML (4)
- Java (26)
- JavaScript (3)
- jetty (2)
- jQuery (2)
- Linki (8)
- Linux (148)
- Linux shell (31)
- Maven (6)
- MySQL (11)
- node.js (3)
- npm (1)
- OpenOffice (2)
- Perl (1)
- PHP (3)
- plink (1)
- PostgreSQL (7)
- Python (3)
- Retrofit (1)
- Richfaces (1)
- Różne (5)
- RxJava (3)
- Spring (6)
- SQL Server (1)
- ssh (1)
- SSL (1)
- Subversion (2)
- SVN (1)
- tomcat (1)
- Uncategorized (20)
- Video (7)
- vim (4)
- VirtualBox (1)
Strony
RSS Links
Meta