3 ms·
Doing it with just one emoji sort of misses the point... One way in P6, combining the full family into one character: my \test = "test\c[Woman,ZWJ,Woman,Z
by raiph 7y ago
Doing it with just one emoji sort of misses the point...
One way in P6, combining the full family into one character:
my \test = "test\c[Woman,ZWJ,Woman,ZWJ,Girl,ZWJ,Boy]";
say test.chars; # 5
say test; # test
say flip test; # tset
say test.chop; # test
HN displays the 7 codepoint family as three spaces.
To see that P6 treats the family as one:
https://tio.run/##K0gtyjH7/18BCHIrFWJKUotLFGwV1EG0ukKdQmleZkFiUXGqgk14fm5ingKEdM8sylFwyq@008vKz8yzUlDXiQr30lG35gIZU5xYqQDSrpecAdRpraCsYIoibq0AAcpg3of5E1c@auhFUMsh1DK4nrSczAKYRmUFnOpLilNL0O3PL7CG2fP/PwA https://tio.run/##K0gtyjH7/18BCHIrFWJKUotLFGwV1EG0ukKdQmleZk...
- Someone 7y agoSorry. Tested with the family, but didn’t notice that I only took the single code point when making _something_ show upon HN. It also works for “test\u{1F469}\u{200d}\u{1f469}\u{200d}\u{1f467}\u{200d}\u{1f466}"