@fnTree(fn, [domain])

Returns a FunctionTree for the given function and optional domain.