I made it so that AllCasePaths: Sequence so that you could iterate over all of the case paths.
The biggest issue is this conformance confuses autocompletion of case key paths with a few properties that come with Sequence:
They show up at the end, so it's not so bad. I avoided a RandomAccessCollection conformance because it added even more pollution here.
Alternately:
We could spell out a whole separate object that acts as the collection, though not sure what that would look like.
If/when we add some kind of conformance to AllCasePaths, like CasePathCollection, then we could squirrel away the collection stuff to a RangeReplaceableCollection.init(some CasePathCollection) helper instead.
This wasn't so bad to add on top of #158.
I made it so that
AllCasePaths: Sequence
so that you could iterate over all of the case paths.The biggest issue is this conformance confuses autocompletion of case key paths with a few properties that come with
Sequence
:They show up at the end, so it's not so bad. I avoided a
RandomAccessCollection
conformance because it added even more pollution here.Alternately:
AllCasePaths
, likeCasePathCollection
, then we could squirrel away the collection stuff to aRangeReplaceableCollection.init(some CasePathCollection)
helper instead.