Generation

generate functionSat, 12 Nov 2022

Generate a case class named Foo consisting of an int, a string, and a boolean Generate a json decoder for Foo

case class Foo(i: Int, s: String, b: Boolean) implicit val fooDecoder: Decoder[Foo] = deriveDecoder[Foo] val foo = decode[Foo]("""{"i": 1, "s": "foo", "b": true}""")

Questions about programming?Chat with your personal AI assistant