Can you please specify which part of the example confused you?
Gaurav Chaddha

Yes, the example did not explain the need for functional programming there plus what was the need to convert squares into triangles. 
I wish I could give better example but this was the very first article I read on functional programming and I’m still not convinced to use RxJava in my android application.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.