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 ,.
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,
.