basically I'm using this data structure: ```class ...
# rx
i
basically I'm using this data structure:
Copy code
class LimitedSizeQueue<T>(private val maxSize: Int) : ArrayList<T>() {

    override fun add(element: T): Boolean =
        super.add(element).also {
            if (size > maxSize) {
                removeRange(0, size - maxSize - 1)
            }
        }
}
and want to use now an observable instead