can't you just use a default value for this? `f: (A, B) => Unit = (_, _) => ()`?