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

# subscript(of:ids:)

Returns and/or modifies the state for the equipment with given identifier and matching type.

## Declaration

```swift
subscript<E>(of type: E.Type, ids equipmentIDs: some Sequence<EquipmentIdentifier>) -> [E.State?] where E : Equipment { get set }
```

## Parameters

- `type`: The type of the equipment.

## See Also

### Accessing the subscript

- [subscript(id:)](tabletopkit/equipmentstatecollection/subscript(id:).md)
- [subscript(ids:)](tabletopkit/equipmentstatecollection/subscript(ids:).md)
- [subscript(of:id:)](tabletopkit/equipmentstatecollection/subscript(of:id:).md)
