In scala:
case class Foo(a: Int, b: String) val halfBuilt: String => Foo = Foo(1, _) val foo = halfBuilt("foo")
In scala: