Skip to content

Length() Function for Collection Types #1067

Open
@zliang-akamai

Description

@zliang-akamai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions