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

proptics.syntax.AtSyntax.scala Maven / Gradle / Ivy

package proptics.syntax

import proptics.instances.at.{remove => rm}
import proptics.typeclass.At

trait AtSyntax {
  implicit def atRemoveOps[S, I, A](at: At[S, I, A]): AtRemoveOps[S, I, A] = AtRemoveOps[S, I, A](at)
}

final case class AtRemoveOps[S, I, A](at: At[S, I, A]) extends AnyVal {
  /** remove a value associated with a key in a Map-like container */
  def remove(i: I)(s: S): S = rm(i)(s)(at)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy