diff options
author | Rocky Madden <git@rockymadden.com> | 2012-10-07 00:46:37 -0600 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2012-10-07 00:46:37 -0600 |
commit | 00204843a4eeb1806bde847066c5e6e1cd52f8b7 (patch) | |
tree | bc80fa1deac2ddeee0f7c4615586c5faaf5b08f5 /core | |
parent | 10a68f88a87cf3add2260c8921fe31c3470820d5 (diff) | |
download | stringmetric-00204843a4eeb1806bde847066c5e6e1cd52f8b7.tar.gz stringmetric-00204843a4eeb1806bde847066c5e6e1cd52f8b7.tar.bz2 stringmetric-00204843a4eeb1806bde847066c5e6e1cd52f8b7.zip |
Used underscore placeholders to shorten.
Diffstat (limited to 'core')
-rwxr-xr-x | core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala b/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala index 837428c..b59972b 100755 --- a/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala +++ b/core/source/core/scala/org/hashtree/stringmetric/JaroWinklerMetric.scala @@ -59,7 +59,7 @@ object JaroWinklerMetric extends StringMetric { } } - (a1Indices.map(i => ca1(i)).toArray, a2Indices.sortWith(_ < _).map(i => ca2(i)).toArray) + (a1Indices.map(ca1(_)).toArray, a2Indices.sortWith(_ < _).map(ca2(_)).toArray) } private[this] def scoreMatches(mca1: Array[Char], mca2: Array[Char]): Int = { |