For tuple.map, add Tuple.Union[this.type] as upper bound for polymorphic function f#21940
felher started this conversation in Feature Requests
Replies: 1 comment
-
someone on Discord pointed out that @odersky previously suggested changing the result type of |
BetaWas this translation helpful?Give feedback.
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the signature of
mapon tuples is:but it seems that it could actually be
this would make it possible, for example, to
mapover a tuple ofInts and increment each field by one.BetaWas this translation helpful?Give feedback.
All reactions