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
Since some records might have something similar fields that would be similar to members in F#, we might want a notation to allow calling the member of a record with the record itself being passed as the first argument, similar to the way . and : works in lua.
For example
let record = { a =1, b =2, add =funr -> r.a + r.b }
let list_of_records =(* something *)
list_of_records
|>List.map (funrecord -> record.add)
(* bad *)
list_of_records
|>List.map (.add)
The text was updated successfully, but these errors were encountered:
Since some records might have something similar fields that would be similar to members in F#, we might want a notation to allow calling the member of a record with the record itself being passed as the first argument, similar to the way
.
and:
works in lua.For example
The text was updated successfully, but these errors were encountered: