Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a term like n-ary that describes the number of return values instead of the number of parameters of a function?

I want to accept a function that returns a tuple. Is there a way to describe a function's return tuple length?

like image 276
dbkaplun Avatar asked Oct 21 '22 04:10

dbkaplun


1 Answers

The doesn't seem to be. Probably because it isn't necessary in formal logic as 2 functions are used instead of one function with two outputs.
If the arity or adicity is the dimension of the domain of the cartesian product of a function what you are looking for is the dimension of the range. Possibly the term "valency" could be used in a particular document as it has a similar meaning to arity but is not so commonly used in computer science so you could use it if you explained your usage up front.

like image 89
AutomatedMike Avatar answered Oct 23 '22 23:10

AutomatedMike