What is the preferred way in scala for managing object pools?
I need to create and delete large scale of objects single-threaded (no need for synchronization) . In c++ I've used array of static objects.
What is idiomatic and effective way to cope with it in scala?