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
The difference between fun and lambda would be that lambda always creates a new function type and that the return type is always assumed to be the type of the compiled body. (If you want to create multiple lambdas of the same type, you should just call fun and use the result as your lambda.)
The text was updated successfully, but these errors were encountered:
The difference between
fun
andlambda
would be thatlambda
always creates a new function type and that the return type is always assumed to be the type of the compiled body. (If you want to create multiple lambdas of the same type, you should just callfun
and use the result as yourlambda
.)The text was updated successfully, but these errors were encountered: