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

com.nthportal.versions.package.scala Maven / Gradle / Ivy

package com.nthportal

package object versions {
  @inline
  private[versions] def _dot[A](f: Int => A): Dot[A] = new Dot[A] {override def apply(value: Int): A = f(value)}

  @inline
  private[versions] def _ordering[A](f: (A, A) => Int): Ordering[A] = new Ordering[A] {
    override def compare(x: A, y: A): Int = f(x, y)
  }

  @inline
  private[versions] def _extensionParser[E](f: String => E): ExtensionParser[E] = new ExtensionParser[E] {
    override def parse(extension: String) = f(extension)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy