All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poly.algebra.std.StringStructure.scala Maven / Gradle / Ivy

package poly.algebra.std

import poly.algebra._

/**
 * @author Tongfei Chen
 */
object StringStructure extends ConcatenativeMonoid[String] with OrderedHashing[String] {

  final def cmp(x: String, y: String) = x compareTo y
  final def hash(x: String) = x.##

  final val empty = ""
  def concat(x: String, y: String) = x + y

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy