diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-02-08 19:55:45 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-02-08 19:55:45 +0200 |
commit | 0e38201f5879cc91c90876b2b9b219a308e3a2d2 (patch) | |
tree | 04d4d2b948f2393d0c78433224d6affc9f724652 /awklib/eg/prog/anagram.awk | |
parent | 34c33ee0f9d3863f9ef381e499e396c9f447a941 (diff) | |
parent | 7306300f662a4fd4adc28e60db6aa0201ec1f5b2 (diff) | |
download | egawk-0e38201f5879cc91c90876b2b9b219a308e3a2d2.tar.gz egawk-0e38201f5879cc91c90876b2b9b219a308e3a2d2.tar.bz2 egawk-0e38201f5879cc91c90876b2b9b219a308e3a2d2.zip |
Merge branch 'master' into non-fatal-io-2
Diffstat (limited to 'awklib/eg/prog/anagram.awk')
-rw-r--r-- | awklib/eg/prog/anagram.awk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/awklib/eg/prog/anagram.awk b/awklib/eg/prog/anagram.awk index 7ca14559..df2768d9 100644 --- a/awklib/eg/prog/anagram.awk +++ b/awklib/eg/prog/anagram.awk @@ -1,5 +1,5 @@ -# anagram.awk --- An implementation of the anagram finding algorithm -# from Jon Bentley's "Programming Pearls", 2nd edition. +# anagram.awk --- An implementation of the anagram-finding algorithm +# from Jon Bentley's "Programming Pearls," 2nd edition. # Addison Wesley, 2000, ISBN 0-201-65788-0. # Column 2, Problem C, section 2.8, pp 18-20. # @@ -21,7 +21,7 @@ key = word2key($1) # Build signature data[key][$1] = $1 # Store word with signature } -# word2key --- split word apart into letters, sort, joining back together +# word2key --- split word apart into letters, sort, and join back together function word2key(word, a, i, n, result) { |