Skip to content

feat(stdlib): give transposed, multi_cartesian_product and zip typed results 📐 - #330

Merged
timfennis merged 1 commit into
feat/type-checkerfrom
feature/type-builtins-returning-any
Nov 13, 2026
Merged

timfennis merged 1 commit into
feat/type-checkerfrom
feature/type-builtins-returning-any

Conversation

@timfennis

Copy link
Copy Markdown
Owner

Some built-ins still returned Any in their element types, so everything computed from their results was dispatched as the program ran.

  • transposed and multi_cartesian_product take a sequence of lists and return a List<List<T>> of the lists' element type. Rows of different types ([[1, 2], ["a"]]) still give a List<List<Any>>, and transposed of strings gives lists of strings.
  • zip of three or four sequences returns a list of typed tuples (List<(A, B, C)>, List<(A, B, C, D)>); five or more still give a List<Any>.

The rows are lists rather than any sequence because a signature can't nest Iterable<T> inside another type.

🤖 Generated with Claude Code

…results 📐

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T15:38:04.906236Z 0e5a74a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@timfennis
timfennis merged commit 4619a52 into feat/type-checker Nov 13, 2026
1 check passed
@timfennis
timfennis deleted the feature/type-builtins-returning-any branch November 13, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant