Contents

ResultsSectionCollection

A collection of sections as returned by Sections or Query.sections.

Declaration

struct ResultsSectionCollection<Element, SectionName> where Element : PersistentModel, SectionName : Hashable

Overview

This is a lightweight RandomAccessCollection of ResultsSection instances, ordered by their first appearance in the sorted results.

Because each section’s name is its identity, the collection provides O(1) lookup by section name via subscript(sectionName:) and contains(sectionName:).

You typically access this collection through sections or Query.sections.

Topics

Finding sections

Retrieving sections

See Also

Accessing sections