Currently, FixedArray::from_array accepts a FixedArray and returns it immediately, which is somewhat confusing and gives the impression that it functions more like ImmutableVec.
To improve consistency with other standard library container functions (e.g., HashMap::from_array), I propose that FixedArray::from_array should accept an Array and return a FixedArray. This change would enhance the overall coherence of the API.
Currently,
FixedArray::from_array
accepts aFixedArray
and returns it immediately, which is somewhat confusing and gives the impression that it functions more likeImmutableVec
.To improve consistency with other standard library container functions (e.g.,
HashMap::from_array
), I propose thatFixedArray::from_array
should accept anArray
and return aFixedArray
. This change would enhance the overall coherence of the API.