---
title: "subscript(of:)"
framework: tabletopkit
role: symbol
role_heading: Instance Subscript
path: "tabletopkit/equipmentcollection/subscript(of:)"
---

# subscript(of:)

Returns the identifiers and corresponding states of all equipment that conform to the given type.

## Declaration

```swift
subscript<E>(of type: E.Type) -> [(identifier: EquipmentIdentifier, state: E.State)] where E : Equipment { get }
```

## Parameters

- `type`: All returned equipment identifiers and states correspond to equipment of this given type.
