Skip to content
Tuples & rest

Array vs tuple params

Given a tuple input, return its first element while preserving literal types.

Solution

Loading...
Run your code to see output and diagnostics.

Built by Antigravity. The source code is available on GitHub.