Skip to content

Allow construction of zero-sized gvectors #18

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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