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.71 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.70 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.69 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.68 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.67 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.66 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.65 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.64 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.63 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.62 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.61 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.60 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.59 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.58 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.57 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.56 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.55 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.54 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.53 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.2.1.52 tracks/perl6/exercises/word-count/Example.pm6