pkl / PR 1113

Add `iterate` and `iterateIndexed` methods for `Collections` in the stdlib

apple/pkl#1113 openmixed

+137/−24lines
10files
4comments
2025-07-01opened
-merged

What it touches

main: 5 test: 4 other: 1

Modules: pkl-core (9), stdlib (1)

Architectural impact (arcade-agent diff_impact)

3files mapped to the graph
58entities in those files
Corecomponents
932entities within 3 hops downstream

Most depended-upon changed entities

EntityDependents
org.pkl.core.runtime.BaseModule294
org.pkl.core.runtime.BaseModule.getListingClass22
org.pkl.core.runtime.BaseModule.getMappingClass22

Computed against the current default branch, not the PR base commit; files renamed or deleted since then are unmatched. Downstream counts are a reverse-dependency closure to depth 3 and over-approximate real blast radius.

Files

mainpkl-core/src/main/java/org/pkl/core/runtime/BaseModule.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/base/FoldedException.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/base/ListNodes.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/base/SetNodes.java
mainpkl-core/src/main/resources/org/pkl/core/errorMessages.properties
testpkl-core/src/test/files/LanguageSnippetTests/input/api/list.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/api/set.pkl
testpkl-core/src/test/files/LanguageSnippetTests/output/api/list.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/api/set.pcf
otherstdlib/base.pkl