I want to build a async operation that iterates chars in given string. I have a char array taken by "mystring".toCharArray()
. I want to iterate each 10th character by using RX.
I know i can do it with AsyncTask and for-loops but i thought RX would be more elegant solution. I have read documentations but did not recognize how to do it.
Another idea in my mind to create a PublishSubject and fire onNext()
in a for-loop that index increments by 10 with subscription.
PS: "mystring"
can be much more larger like a json, xml or etc. Please feel free to comment about ram profiling.