Undefine mixed data

[email protected] (rir)
Newsgroups perl.perl6.users
Message-ID <20230314034203.akthom4vcpikoz2s@shrew>
    undefine seen at:
      <unknown file>, line 1
    Will be removed with release v6.e!
    Please use another way: assign a Nil; for Arrays/Hashes, assign Empty or () instead.

Will that deprecation require a conditional and two assignments
for mixed data?

[$a, @a, $b, %c, $c, &d].map: { .&undefine};

[$a, @a, $b, %c, $c, &d].map(
    { $_ = $_ ~~ (Associative,Positional).any ?? Empty !! Nil });
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.