mirror of
https://github.com/apple/pkl.git
synced 2026-04-26 18:28:33 +02:00
Add methods from List/Map to Listing/Mapping (#683)
* Add `values` to `Mapping` * Add `entries` to `Mapping` * Add `containsValue` to `Mapping` * Add `every` to `Mapping` * Add `any` to `Mapping` * Add `toDynamic` to `Mapping` * Add `lastIndex` to `Listing` * Add `getOrNull` to `Listing` * Add `first` to `Listing` * Add `firstOrNull` to `Listing` * Add `last` to `Listing` * Add `lastOrNull` to `Listing` * Add `single` to `Listing` * Add `singleOrNull` to `Listing` * Add `contains` to `Listing` * Add `any` to `Listing` * Add `every` to `Listing` * Fixup `any` to `Listing` * Revert "Add `toDynamic` to `Mapping`" This reverts commit 5551974ecd8110aa2eb8f546e992c32d3181df9b. * Revert "Add `values` to `Mapping`" This reverts commit 6fc78796 * Revert "Add `entries` to `Mapping`" This reverts commit a7e8dfc4 * Annotate new members with `Since` 0.27 * Fix documentation in `base.pkl` * Add location information to empty/single checks in `Listing` operations * Remove additional variable for laziness preservation * Apply spotless * Apply suggestions from code review Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com> --------- Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com>
This commit is contained in:
committed by
GitHub
parent
71db4d0fae
commit
a03827951c
@@ -518,6 +518,12 @@ Expected a single-element collection.
|
||||
cannotFlattenCollectionWithNonCollectionElement=\
|
||||
Cannot flatten a collection containing a non-collection element.
|
||||
|
||||
expectedNonEmptyListing=\
|
||||
Expected a non-empty Listing.
|
||||
|
||||
expectedSingleElementListing=\
|
||||
Expected a single-element Listing.
|
||||
|
||||
integerOverflow=\
|
||||
Integer overflow.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user