Pools
Last updated
Was this helpful?
Last updated
Was this helpful?
Pools work a little bit like , with the exception of not being ordered. You cannot choose whether to add a value to the beginning or to the end of a pool, you just throw the value into the pool with , and it stays there.
Also, when you get objects from the pool with , you can't choose what object you get, you just get a random one.
One benefit you get when using pools is that you can check if a certain value is in the pool by using , and you can also get the number of values in the pool with .