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
This might be a mistake that's unique to people coming from OCaml/F#, but:
tasks |> List.map (\t -> t.id, t)
The mistake was in forgetting the brackets on the result tuple (F# doesn't require commas around tuples, as it uses semicolons for list comprehensions instead).
The error I get:
NAMING ERROR - I cannot find a `t` variable:
191| |> List.map (\t -> t.id, t)
^
I'm not sure this would be easy to improve, since it can't be helped that the -> operator has higher precedence than ,.
The text was updated successfully, but these errors were encountered:
This might be a mistake that's unique to people coming from OCaml/F#, but:
The mistake was in forgetting the brackets on the result tuple (F# doesn't require commas around tuples, as it uses semicolons for list comprehensions instead).
The error I get:
I'm not sure this would be easy to improve, since it can't be helped that the
->
operator has higher precedence than,
.The text was updated successfully, but these errors were encountered: