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

Length() Function for Collection Types #1067

Open
zliang-akamai opened this issue Dec 13, 2024 · 0 comments
Open

Length() Function for Collection Types #1067

zliang-akamai opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zliang-akamai
Copy link
Contributor

zliang-akamai commented Dec 13, 2024

It's nice to have Length function for collection types (set, list, map, etc.), so we won't have to do len(list.Elements()) which is wasting time to allocate and release memory because Elements() make a new slice internally.

If you are willing to add this feature, I can try to put up a PR to implement it. Let me know.

@zliang-akamai zliang-akamai added the enhancement New feature or request label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant