You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.
Maybe I'm missing something here, but it seems like I must specify the return type of the closure passed to flatMap. When I use just the parameters, it fails to build with error: "Missing argument for parameter 'f' in call".
Doesn't work:
Artist.findOne("1").flatMap{ resource, meta inreturn resource.findRelated("albums")}
Does work:
Artist.findOne("1").flatMap{ resource, meta ->Future<([Resource],Meta?)>inreturn resource.findRelated("albums")}
The text was updated successfully, but these errors were encountered:
wvteijlingen
changed the title
flatMap closure needs return type specified?
Closure passed to flatMap needs return type specified?
Sep 12, 2014
Maybe I'm missing something here, but it seems like I must specify the return type of the closure passed to
flatMap
. When I use just the parameters, it fails to build with error: "Missing argument for parameter 'f' in call".Doesn't work:
Does work:
The text was updated successfully, but these errors were encountered: