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.98 tracks/perl6/exercises/anagram/Example.pm6
trackler-2.2.1.97 tracks/perl6/exercises/anagram/Example.pm6
trackler-2.2.1.96 tracks/perl6/exercises/anagram/Example.pm6