Skip to content

vec_rep_each() early exit issue #1673

Closed

Description

@DavisVaughan
vec_rep_each(NA, 0)
#> <unspecified> [0]

From calling vec_ptype() rather than vec_slice(x, NULL) or following up with vec_ptype_finalize().

out = vec_ptype(x, p_x_arg, call);

Update: should probably be vec_slice() because we'd want named vectors to keep their names, and vec_ptype() should theoretically drop names

Activity

  1. added
    bugan unexpected problem or unintended behavior
    on Sep 21, 2022
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

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions