Sequence wrapper. It saves you from creating a dedicated class with a single array property just to hold a list.
Basic Usage
PassSequence::of(ClassName::class) as the response model to extract a typed collection.
$list is a Sequence instance containing fully validated Person objects.
Working with Sequences
Sequence implements ArrayAccess and IteratorAggregate, so you can use it like an array. It also provides convenience methods for common operations.
Streaming Sequences
One of the most powerful features of sequences is streaming completed items. Whilepartials() yields the entire object on every property change, sequence() yields only when a new item in the list is fully populated.
finalValue() is fully validated.