eta.util.buffer.iterate

iterate(buffer, func=None)[source]

Return a buffer as a list (optionally applying some function to each value).

Parameters:
  • buffer (list[tuple[float, object]]) –

  • func (function, optional) – A function to apply to each value in the buffer.

Return type:

list[object]