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

[framework] vector zip destroy_empty + allow return values in lambdas #20745

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

damirka
Copy link
Contributor

@damirka damirka commented Dec 27, 2024

Description

  • adds v2.destroy_empty in zip_do to support destroying vectors of non-droppable Ts
  • allows return values in lambdas as a convenience feature to not wrap lambdas into braces

Test plan

  • features tests

Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@damirka damirka self-assigned this Dec 27, 2024
@damirka damirka temporarily deployed to sui-typescript-aws-kms-test-env December 27, 2024 17:54 — with GitHub Actions Inactive
Copy link

vercel bot commented Dec 27, 2024

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

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 6:51am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 6:51am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 6:51am
sui-typescript-docs ⬜️ Ignored (Inspect) Jan 17, 2025 6:51am

Co-authored-by: Todd Nowacki <tmn@mystenlabs.com>
@damirka damirka temporarily deployed to sui-typescript-aws-kms-test-env January 17, 2025 06:50 — with GitHub Actions Inactive
@damirka
Copy link
Contributor Author

damirka commented Jan 17, 2025

Addressed your comment @tnowacki, let me know if you want a similar approach elsewhere in the code.

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.

3 participants