Specifying output container type based on input container

typeassert would error if it doesn’t work, convert may silently cost you performance. again, I guess it depends on your goal

1 Like