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
I suggest implementing a language feature to easily transform anonymous records :
lettranformation_example()=letAR=struct{|
R =0.0f
G =1.0f
B =2.0f
|}letresult= AR |> Ar.map(fun obj -> obj +1f)//alternatively AR |> function obj -> obj + 1f/*
result =struct{|
R =1.0f
G =2.0f
B =3.0f
|}*/
Vision : The content inside anonymous record can be recognized by the language for types, since types inside are same, transformation can be applied to structure
The text was updated successfully, but these errors were encountered:
Please re-format the suggestion according to the template. With pros, cons, comparing and searching through existing suggestions.
Currently this is not useful since it only covers one shape of the record, with fields of the same type. What you're suggesting are lens, but just worse.
I am going to close it, please if still desired, open a new one with proper description and formatting according to the template. Also, consider looking for existing suggestions for lens.
I suggest implementing a language feature to easily transform anonymous records :
Vision : The content inside anonymous record can be recognized by the language for types, since types inside are same, transformation can be applied to structure
The text was updated successfully, but these errors were encountered: