MediatorLiveData and Transformations seem to be very useful classes if we would like to do a ‘reactive patterns’ with LiveData and here are what I can show to you:
Since Kotlin is a multi-paradigm language, we can also avoid using for loop and use recursion instead…