CircularBuffer.empty-question-mark

You're seeing just the function empty-question-mark, go back to CircularBuffer module for more information.

Specs

empty?(t()) :: boolean()

Checks the buffer to see if its empty

Returns true if the given circular buffer is empty, otherwise false.

Examples

iex> cb = CircularBuffer.new(1)
iex> CircularBuffer.empty?(cb)
true
iex> cb |> CircularBuffer.insert(1) |> CircularBuffer.empty?()
false