quicklens
quicklens copied to clipboard
Modify deeply nested case class fields
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 3.4.1. Release notes Sourced from actions/setup-java's releases. v3.4.1 In scope of this release we updated actions/cache package as the new version contains fixes for caching...
Using scala 2.12.4, JDK 8u141, Quicklens 1.4.11. Using the following setup with an example from the documentation: ``` case class Street(name: String) case class Address(street: Option[Street]) case class Person(addresses: List[Address])...
Bumps [coursier/cache-action](https://github.com/coursier/cache-action) from 6.2 to 6.3.1. Release notes Sourced from coursier/cache-action's releases. v6.3.1 What's Changed Bump eslint from 7.31.0 to 7.32.0 by @dependabot in coursier/cache-action#201 Fix coursier cache action version...
Compiling this file: ```scala package example import com.softwaremill.quicklens.{ModifyPimp, QuicklensEach} object Hello extends Greeting with App { case class Foo(field: String) def doit = { val lang2 = "hey" Seq(Foo("asdf")) .modify(_.eachWhere(_.field...
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. Release notes Sourced from actions/checkout's releases. v3.0.0 Update default runtime to node16 v2.4.0 Convert SSH URLs like org-<ORG_ID>@github.com: to https://github.com/ - pr v2.3.5 Update...
I am at a bank where GitHub is blocked and I need to share the documentation. Please follow these instructions to create a GitHub page: [https://pages.github.com/](https://pages.github.com/) I would appreciate it.
Hi, This truly is a fantastic library which enables some really removes a bunch of boilerplate code! I was wondering if there was any plan (now or later) to support...
Add to `ModifyEachWhereTest` following test: ``` it should "allow referencing local varialbe" in { val zmienna = "d" modify(z1)(_.name.eachWhere(_.startsWith(zmienna))).using(duplicate) should be(z1dup) } ``` And watch as it burns: ``` [info]...
As we can't use: ``` scala> def extractor(p: Person) = p.address.street.name extractor: (p: Person)String scala> val p2 = person.modify(extractor).using(_.toUpperCase) :21: error: Path must have shape: _.field1.field2.each.field3.(...) ``` as it's hard...
Currently it appears impossible to use `eachWhere` with a map. It is formally possible to invoke `eachWhere` on a `Map[A, B]`, but it would result in this method using `Iterable[(A,...