|
|
|
|
|
by valarauca1
4056 days ago
|
|
I know this but I can never get my code to compile when doing this. I always seem to get huge type errors even when I know the code is correct. map(|x|foo(x)) //clean compile
map(foo) //type error
The number of times I've had this happen has just lead to me giving up on simply just passing the lambda as a variable instead of wrapping it in another. |
|