Skip to content

Instantly share code, notes, and snippets.

View enzief's full-sized avatar
👆
Bro-engineer

enzief

👆
Bro-engineer
  • Rivendell
View GitHub Profile
@enzief
enzief / 2.scala
Last active June 11, 2019 17:25
fake lens
case class Config(one: Config_1)
case class Config_1(two: Config_2)
case class Config_2(three: Config_3)
case class Config_3(value: Int)
class GetIntService {
def fromConfig(c: Config): Int
}
def main(config: Config)(service: GetIntService): Int = service.fromConfig(config) + 1

Keybase proof

I hereby claim:

  • I am enzief on github.
  • I am enzief (https://keybase.io/enzief) on keybase.
  • I have a public key ASBEOgkedBfHdI4jihpDQGi3SST85g--dTP5ylolIKBvpgo

To claim this, I am signing this object: