Skip to content

Enhance the GenerateSliceOfXxxx()-family to create variable length #11

Description

@mwsis

Without changing parameters, can add ability to generate variable length slices. To achieve this, need to add following:

  • the generate functions' size parameter can be negative; and
  • we add a public custom error - e.g. EndOfGeneration - that can be returned by the generator function(s) and will cause successful termination of generation;

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions