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.1.0.13 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.12 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.11 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.10 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.9 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.8 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.7 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.6 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.5 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.4 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.3 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.2 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.1 tracks/perl6/exercises/word-count/Example.pm
trackler-2.1.0.0 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.55 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.54 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.53 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.52 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.51 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.50 tracks/perl6/exercises/word-count/Example.pm