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.0.8.49 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.48 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.47 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.46 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.45 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.44 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.43 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.42 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.41 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.40 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.39 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.38 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.37 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.36 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.35 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.34 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.33 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.32 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.31 tracks/perl6/exercises/word-count/Example.pm
trackler-2.0.8.30 tracks/perl6/exercises/word-count/Example.pm