in anyway I am trying anything, so my question is,...
# announcements
i
in anyway I am trying anything, so my question is, can I transform the second parameter of
getRecipes
in a lambda?
m
Not directly, because it requires two functions:
onSuccess()
and
onError()
. If this is your repository, you could change
getRecipes()
to take your
query
and a pair of function types, and then you could use lambda expressions for supplying those function types.
i
thanks!
👍 1