kyleg
02/03/2020, 2:10 AMLiveData
a monad that would benefit from the Rx treatment in Arrow? Its got pure
in MutableLiveData(…)
, Transformations.map(myLiveData, myTransformation)
is map
, and Transformations.switchMap(myLiveData, myTransformationFn)
is like flatMap
.
And because it is lazy until there is a registered observer, it could be thought of as IO
. I guess. IO.unsafeRunAsync
is basically SomeLiveData.observe(…)
That’s why I’m asking the experts here 🙂pakoito
02/03/2020, 3:16 AMpakoito
02/03/2020, 3:16 AMpakoito
02/03/2020, 3:16 AMpakoito
02/03/2020, 3:16 AMpakoito
02/03/2020, 3:17 AMpakoito
02/03/2020, 3:18 AMpakoito
02/03/2020, 3:20 AMpakoito
02/03/2020, 3:21 AMpakoito
02/03/2020, 3:21 AMsimon.vergauwen
02/03/2020, 11:02 AMthe implementation was meant to have one or two operators applied, no more.🙃