Float Deque
FloatDeque is a double-ended queue for Float values backed by a circular buffer.
Amortized O(1) insertion/removal at both ends.
Indexed access, insertion and removal are supported (may shift elements internally).
Not thread-safe: synchronize externally if multiple threads mutate concurrently.
Throws
if initialCapacity is negative.
Constructors
Properties
Functions
Returns a live MutableList view backed by this deque. Structural changes are reflected both ways.
Dequeues and returns the front element (queue-style). Alias for removeFirst.
Returns the first element, or null if this deque is empty.
Iterates elements from first to last, passing the logical index and value to action.
Iterates elements from last to first, invoking action for each element.
Iterates elements from last to first, passing the logical index and value to action.
Returns true if this deque contains one or more elements.
Returns the index of the last occurrence of value, or -1 if not found.
Returns the last element, or null if this deque is empty.
Pops and returns the front element (stack-style). Alias for removeFirst.
Removes and returns the first element.
Removes and returns the first element, or null if the deque is empty.
Removes and returns the last element.
Removes and returns the last element, or null if the deque is empty.