Sha256: adc69ca9f7e0b3457ca3ec97013edb801e431913ed08207af0c56b050ebdc001

Contents?: true

Size: 137 Bytes

Versions: 161

Compression:

Stored size: 137 Bytes

Contents

unit module WordCount:ver<1>;

sub count-words (Str:D $str --> Hash:D) is export {
  $str.lc.comb(/ <alnum>+ (\'<alnum>+)? /).Bag.hash
}

Version data entries

161 entries across 161 versions & 1 rubygems

Version Path
trackler-2.2.1.51 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.50 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.49 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.48 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.47 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.46 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.45 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.44 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.43 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.42 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.41 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.40 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.39 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.38 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.37 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.36 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.35 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.34 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.33 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.32 tracks/perl6/exercises/word-count/Example.pm6