fun <Token, ItemType, Action : PagedAction<Token, ItemType, Rsp, Action>, Rsp : Paged<Token, ItemType>> paginated(fn: (Action) -> Result<Rsp, RemoteFailure>, action: Action): Sequence<Result<List<ItemType>, RemoteFailure>> Paginate the response of the passed action