
com.rockymadden.stringmetric.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stringmetric-core Show documentation
Show all versions of stringmetric-core Show documentation
String metrics and phonetic algorithms for Scala.
The newest version!
package com.rockymadden
package object stringmetric {
import scala.language.implicitConversions
import com.rockymadden.stringmetric.Algorithm._
import com.rockymadden.stringmetric.Metric._
type CompareTuple[T] = (Array[T], Array[T])
type MatchTuple[T] = (Array[T], Array[T])
implicit def stringToCharArray(s: String): Array[Char] =
s.toCharArray
implicit def stringAlgorithmToDecoratedStringAlgorithm(sa: StringAlgorithm): StringAlgorithmDecorator =
new StringAlgorithmDecorator(sa)
implicit def stringMetricToDecoratedStringMetric[A](sa: StringMetric[A]): StringMetricDecorator[A] =
new StringMetricDecorator[A](sa)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy