Quick actions

cmd+k|ctrl+k

Navigation

Languages

Twice Appearance 

Snippet info

Language

Raku

Visibility

public

Author

fernando-correa

Created

2024-07-31T01:19:49.721179Z

Updated

2024-07-31T01:19:57.920951Z

use Test;

my &twice-appearance = *.comb.repeated.head;

is "acbddbca".&twice-appearance, "d";
is "abccd".&twice-appearance, "c";
is "abcdabbb".&twice-appearance, "a";
INFO