I have collections A and B, which are inputs for the function f() that returns the scalar D. The collections A and B, and the scalar D are inputs for g() which returns the colle