The Indexish<Tk,Tv> interface

This page is a quick reference for people already familiar with the class. If this is new to you, we strongly recommend reading the introductory guides first:

Represents an entity that can be indexed using square-bracket syntax.

Square bracket syntax is:


At this point, this includes entities with keys of int and string.

In addition to Hack collections, PHP arrays are Indexish.

Interface synopsis

interface Indexish implements KeyedContainer {...}