# Pastebin ldYRYfg5 sub librerify(&sub) { my %cmds = do for &sub.candidates>>.signature>>.params { my @params = .self; my @cmd = @params.grep({ .elems == 1 && .head ~~ Str with .constraint_list})>>.constraint_list>>[0]; @cmd.join("-") => &sub.assuming(|@cmd) if @cmd } %cmds } sub bla("bla", "ble", Int $n) { say $n } librerify(&bla).(42)