Some golang tools using generic rewriting
It is a fixed size array with O(1) time complexity for adding and deleting elements.
-
Linked list can add and delete elements in O (1) time complexity.
-
Array random reading efficiency is high, with spatial locality.
FixSizeArray combines the advantages of both.