Also, as we speaking of trade-offs, there seems to...
# stdlib
i
Also, as we speaking of trade-offs, there seems to be no one-size-fits-all
ArrayList
analogue in the land of immutable collections. The same ImmutableList interface can be backed by different data structures, providing different performance trade-offs. For example one can have fast add to the end, provide sequential accesss and reasonably fast indexed acccess, but at a cost of very expensive remove.