Iterate through lambdas in Kotlin
My MVP presenter is bound to the view in onResume, so that unbinding is guaranteed. This means that sometimes, for example when data is coming from onActivityResult(), the view is not bound, but we want to still touch the view, to show progress, etc. So far I used a flag for this and executed these actions in bindView() or in updateView(), which is called when the view is bound.
Now I'm using Kotlin, so I thought what if I would use a list of lambdas for this in the BasePresenter? This is...