Add all() (#8445).

Includes test cases.