mingkangpan
arrayListOf(11,2,5,8,10,13,9,7,3,4).toObservable() .groupBy { i -> i % 2 == 0 } .flatMap { g -> g.reduce { t1,t2 -> t1 + t2 } }