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

proptics.applied.internal.AppliedTraversal1.scala Maven / Gradle / Ivy

package proptics.applied.internal

import cats.Applicative

import proptics.internal.Traversal1

private[proptics] trait AppliedTraversal1[S, T, A, B] extends AppliedTraversal0[S, T, A, B] with AppliedFold1[S, A] {
  val value: S
  val optic: Traversal1[S, T, A, B]

  /** evaluate each  focus of a Traversal from left to right, and ignore the results structure */
  final def sequence_[F[_]](implicit ev: Applicative[F]): F[Unit] = optic.sequence_(value)

  /** map each focus of a Traversal to an effect, from left to right, and ignore the results */
  final def traverse_[F[_], R](f: A => F[R])(implicit ev: Applicative[F]): F[Unit] = optic.traverse_(value)(f)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy