Overload `[]` operator for custom type

See getindex and setindex!.

3 Likes