3 ms·
In the function input scenario, it's more like an alternative to a generic type Elements: Sequence with the Element constrained to Int. Either would work. Ther
by superlopuh 9y ago
In the function input scenario, it's more like an alternative to a generic type Elements: Sequence with the Element constrained to Int. Either would work.
There are cases where this is not possible, like when you are returning a sequence from a function whose API you don't want to bind to a specific type. Then the only thing you can do is to pass an AnySequence.