Skip to content

Allow construction of zero-sized gvectors #18

@jackfirth

Description

@jackfirth

The #:capacity argument to make-gvector is restricted to an exact-positive-integer?, which prevents using make-gvector to create a zero-sized vector. I think this ought to be allowed, since if the capacity argument is dynamic (say, you're computing it based on indices for some subvector) returning an empty vector for the zero size case is perfectly reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions