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.33 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.32 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.31 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.30 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.29 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.28 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.27 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.26 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.25 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.24 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.23 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.22 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.21 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.20 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.19 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.18 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.17 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.16 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.15 tracks/perl6/exercises/word-count/Example.pm6
trackler-2.1.0.14 tracks/perl6/exercises/word-count/Example.pm6