Skip to content
CSCosmos
TSViz
Concepts
Problems
Playground
GitHub
Toggle theme
Problems
Easy
Tuples & rest
Array vs tuple params
Given a tuple input, return its first element while preserving literal types.
Show hints
Show solution
Solution
Reset
Run
Loading...
Run your code to see output and diagnostics.