Quick actions

cmd+k|ctrl+k

Navigation

Languages

max-index

Snippet info

Language

Raku

Visibility

public

Author

fernando-correa

Created

2022-09-13T21:42:53.020975Z

Updated

2022-09-13T21:45:32.685173Z

my &max-index = { .first: .max, :k }
say (5, 2, 9, 1, 7, 6).&max-index;
say (4, 2, 3, 1, 5, 0).&max-index;
INFO