operator [] method

PortReference operator [](
  1. int index
)

Gets a single bit of this port at the specified index.

This is equivalent to calling slice(index, index).

Implementation

PortReference operator [](int index) => slice(index, index);