This changes add to BaseCollection classes the following methods:
- first() will return the first item if it exists
- firstOr() will return the first item if it exists, or a default value if not.
Both are implemented by the WithCollection trait.
Differential D3197
Allow to get first item of a collection dereckson on Jun 14 2023, 21:08. Authored by Tags None Referenced Files
Subscribers None
Details This changes add to BaseCollection classes the following methods:
Both are implemented by the WithCollection trait. Tested in Zed
Diff Detail
|