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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the signature of
map
on tuples is:but it seems that it could actually be
this would make it possible, for example, to
map
over a tuple ofInt
s and increment each field by one.Beta Was this translation helpful? Give feedback.
All reactions