mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1113] Add iterate and iterateIndexed methods for Collections in the stdlib
#892
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1113
Author: @stackoverflow
Created: 7/1/2025
Status: 🔄 Open
Base:
main← Head:iterate-methods📝 Commits (4)
8e3b761AdditerateanditerateIndexedmethods forCollectionsin the stdlib.e3d5187Address review comments.d353b85Remove iterate functions and addfoldedfunction to short-circuit the other folding functionsa3ec194Change folded function to not throw an exception📊 Changes
10 files changed (+137 additions, -24 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/runtime/BaseModule.java(+8 -0)➕
pkl-core/src/main/java/org/pkl/core/stdlib/base/FoldedException.java(+24 -0)📝
pkl-core/src/main/java/org/pkl/core/stdlib/base/ListNodes.java(+20 -0)📝
pkl-core/src/main/java/org/pkl/core/stdlib/base/SetNodes.java(+20 -0)📝
pkl-core/src/main/resources/org/pkl/core/errorMessages.properties(+3 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/list.pkl(+17 -13)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/set.pkl(+15 -11)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/list.pcf(+4 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/set.pcf(+4 -0)📝
stdlib/base.pkl(+22 -0)📄 Description
No description provided
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.