thanks <@U0B8ZP13Q> this is the use case: ``` loc...
# announcements
d
thanks @cedric this is the use case:
Copy code
locationService
    .retrieveLocationListFromNetwork(/* params */)  // returns an array
    .sortedBy { userLocationProvider?.lastLocation()?.distanceTo(it) ?: 0f }
    .map { WrapperClass(it) }
The point is that
userLocationProvider
is sometimes slow to start up, so I want it to be accessed after
retrieveLocationListFromNetwork
but also would like to cache it (in the above example
userLocationProvider?.lastLocation()
is called for each element of the array)