Join Slack
Powered by
Would ```val (a, b, _, _) = x``` have higher overh...
# general-advice
f
fishy
09/15/2026, 8:42 AM
Would
Copy code
val (a, b, _, _) = x
have higher overhead than
Copy code
val (a, b) = x
?
e
ephemient
09/15/2026, 9:36 AM
no,
component_N_()
doesn't get called for
_
ephemient
09/15/2026, 12:09 PM
which is in the docs
https://kotlinlang.org/docs/destructuring-declarations.html#underscore-for-unused-variables
or you could have tested it
https://pl.kotl.in/1pXvSHWb4
Open in Slack
Previous
Next