operator [] method

Symbol operator [](
  1. int offset
)

Implementation

Symbol operator [](int offset) {
  if (_channel.isEmpty) return Symbol.empty;
  assert(offset.modulus + 1 <= _channel.length);
  return (offset > 0) ? _channel[offset] : _channel[_channel.length - 1 + offset];
}