Skip to content

Commit

Permalink
Update Appendix A/IndexText.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinke committed Aug 18, 2012
1 parent fc5cb04 commit 4ae179c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Appendix A/IndexText.ps1
@@ -1,7 +1,7 @@
function SlowTrain($text) {
function SlowTrain($text) {

$h = @{}
[regex]::split($text.ToLower(), \W+) |
[regex]::split($text.ToLower(), \W+) |
ForEach {
$h[$_] =''
}
Expand All @@ -11,7 +11,7 @@ function SlowTrain($text) {
function FastTrain($text) {

$h = @{}
ForEach ($word in [regex]::split($text.ToLower(), \W+) )
ForEach ($word in [regex]::split($text.ToLower(), \W+) )
{
$h[$word] = ''
}
Expand Down

0 comments on commit 4ae179c

Please sign in to comment.