Sha256: af3a233a426c3cccacde54612b7c53e7cc02d04f9185384ffe931a727c3fb5d2

Contents?: true

Size: 201 Bytes

Versions: 83

Compression:

Stored size: 201 Bytes

Contents

unit module Anagram:ver<3>;

sub match-anagrams ( :$subject!, :@candidates! ) is export {
  given $subject.uc -> $ucs {
    @candidates.grep: { given .uc {$_ ne $ucs && .comb ~~ $ucs.comb.Bag} }
  }
}

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.179 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.178 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.177 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.176 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.175 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.174 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.173 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.172 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.171 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.170 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.169 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.167 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.166 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.165 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.164 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.163 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.162 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.161 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6
trackler-2.2.1.160 tracks/perl6/exercises/anagram/.meta/solutions/Anagram.pm6