Quick actions

cmd+k|ctrl+k

Navigation

Languages

283 #1

Snippet info

Language

Raku

Visibility

public

Author

fernando-correa

Created

2024-08-19T11:40:27.411741Z

Updated

2024-08-19T11:40:27.411741Z

use Test;

my &uniq = *.Bag.first(*.value == 1).key;

is (3, 3, 1).&uniq, 1;
is (3, 2, 4, 2, 4).&uniq, 3;
is (1).&uniq, 1;
is (4, 3, 1, 1, 1, 4).&uniq, 3;
INFO