HH\Container

The HH\Container<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 iterated over using foreach, without requiring a key, except it does not include objects that implement Iterator.

The iteration variable will have a type of T.

In addition to Hack collections, PHP arrays are Containers.

Interface synopsis

interface Container implements Traversable {...}