Front page | perl.perl6.users |
Postings from March 2023
Undefine mixed data
Thread Next
From:
rir
Date:
March 14, 2023 03:42
Subject:
Undefine mixed data
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 });
Thread Next
-
Undefine mixed data
by rir