Is there a way to make a generic lamda reference? ...
# stdlib
h
Is there a way to make a generic lamda reference? Something like
thing.map(otherThing::method<MyType>)
. I've tried putting brackets everywhere and it doesn't work ☹️
k
What does
method
look like? Can you maybe put the parameter somewhere else, eg. in the variable for the result of this
map
?
l
You need to apply the type parameter to the
map
call. For the method reference, you can only get type inference