Problem

Return copy with index 0 set to val.

Examples

  • setFirst([1, 2], 9) -> [9, 2]
Compile and test (Ctrl+Enter)