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

cats.syntax.vector.scala Maven / Gradle / Ivy

The newest version!
package cats.syntax

import cats.data.NonEmptyVector

trait VectorSyntax {
  implicit final def catsSyntaxVectors[A](va: Vector[A]): VectorOps[A] = new VectorOps(va)
}

final class VectorOps[A](private val va: Vector[A]) extends AnyVal {
  def toNev: Option[NonEmptyVector[A]] = NonEmptyVector.fromVector(va)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy