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

scalaz.syntax.StateOps.scala Maven / Gradle / Ivy

package scalaz
package syntax

final class StateOps[A](val self: A) extends AnyVal {
  def state[S]: State[S, A] = State.state[S, A](self)
  def stateT[F[_]:Monad, S]: StateT[F, S, A] = StateT.stateT[F, S, A](self)
}

trait ToStateOps {
  implicit def ToStateOps[A](a: A) = new StateOps(a)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy