It works! But also my function is superfluous now that I know to also add numbers to the domain when extending the range to multiple elements