Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KCL: Reduce can take and return any KCL values #4094

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

adamchalmers
Copy link
Collaborator

Previously it only took Array of Number and could only return Sketch.

Now it has been unshackled from the chains of poor type signatures.

Copy link

qa-wolf bot commented Oct 4, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Oct 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Oct 4, 2024 5:26pm

Previously it only took Array of Number and could only return Sketch.

Now it has been unshackled from the chains of poor type signatures.
@adamchalmers adamchalmers force-pushed the achalmers/generalize-reduce branch from dee483f to 14432ca Compare October 4, 2024 16:38
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.25%. Comparing base (c84c0b0) to head (ce551e5).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4094      +/-   ##
==========================================
+ Coverage   86.22%   86.25%   +0.03%     
==========================================
  Files          75       75              
  Lines       26488    26484       -4     
==========================================
+ Hits        22838    22845       +7     
+ Misses       3650     3639      -11     
Flag Coverage Δ
wasm-lib 86.25% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@jtran jtran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

| `array` | `[u64]` | | Yes |
| `start` | [`Sketch`](/docs/kcl/types/Sketch) | A sketch is a collection of paths. | Yes |
| `array` | [`[KclValue]`](/docs/kcl/types/KclValue) | | Yes |
| `start` | [`KclValue`](/docs/kcl/types/KclValue) | A memory item. | Yes |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize A memory item., the doc comment of KclValue, was making it into the user-facing docs. We should probably improve that.

@adamchalmers adamchalmers merged commit ec8cacb into main Oct 4, 2024
30 of 32 checks passed
@adamchalmers adamchalmers deleted the achalmers/generalize-reduce branch October 4, 2024 18:26
@nadr0 nadr0 mentioned this pull request Oct 7, 2024
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.

2 participants