Converts an empty collection to an empty collection of the declared type

All 2 scenarios hold

expected outcome broken scenario
ScenarioList inputSet inputMap inputElement count?
Empty[]{}[:]0
Single element
  • a
  • a
k
a
1