<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIEventPacket/WordCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core MIDI",
      "CoreMIDI"
    ],
    "preciseIdentifier" : "s:So15MIDIEventPacketV8CoreMIDIE14WordCollectionV"
  },
  "title" : "MIDIEventPacket.WordCollection"
}
-->

# MIDIEventPacket.WordCollection

```
struct WordCollection
```

## Topics

### Initializers

[`init(UnsafePointer<MIDIEventPacket>)`](/documentation/CoreMIDI/MIDIEventPacket/WordCollection/init(_:)-81z9r)

[`init?(UnsafePointer<MIDIEventPacket>?)`](/documentation/CoreMIDI/MIDIEventPacket/WordCollection/init(_:)-922um)

### Instance Properties

[`var count: Int`](/documentation/CoreMIDI/MIDIEventPacket/WordCollection/count)

[`var endIndex: Int`](/documentation/CoreMIDI/MIDIEventPacket/WordCollection/endIndex)

[`var startIndex: Int`](/documentation/CoreMIDI/MIDIEventPacket/WordCollection/startIndex)

### Subscripts

[`subscript(MIDIEventPacket.WordCollection.Index) -> MIDIEventPacket.WordCollection.Element`](/documentation/CoreMIDI/MIDIEventPacket/WordCollection/subscript(_:))

## Relationships

### Conforms To

[`RandomAccessCollection`](/documentation/Swift/RandomAccessCollection)

[`Sequence`](/documentation/Swift/Sequence)

[`Collection`](/documentation/Swift/Collection)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)