RxJava Kotlin flatmap don't return separated objects from splitted string. instead it returns List
val source: Observable<String> = Observable.just("521934/2342/FOXTROT")
.flatMap{Observable.fromArray(it.split("/"))}
.subscribe{Log.d(TAG, "$it")}
It returns list:
[521934, 2342, FOXTROT]
But book (Thomas Nield : Learning RxJava / 2017 / Page 114) says it has to return separated strings
521934
2342
FOXTROT
http://reactivex.io/documentation/operators/flatmap.html says that it returns Single object. In my case I got Single List object. So, documentation says true. But I want to get result as in book example!
How I can split the list and get separated objects?