I am proposing that another trait is added to IteratorSize2 to indicate that size is known statically, ie encoded in the result type.
Practical application is collecting into something like a StaticArrays.SArray or similar.
Bikeshedding the name is welcome, HasStaticLength and HasStaticShape could work.
I am proposing that another trait is added to
IteratorSize2to indicate that size is known statically, ie encoded in the result type.Practical application is collecting into something like a
StaticArrays.SArrayor similar.Bikeshedding the name is welcome,
HasStaticLengthandHasStaticShapecould work.