From Introduction to Automata Theory, Language, and Computation by Ullman et. al.:
The Turing machine is studied both for the class of languages it define (called the recursively enumerable sets) and the class of integer functions it computes (called the partial recursive functions).
What is the relation between recursive enumerable languages and partial recursive functions? (notice "recursive" in both terms, and "partial" in "partial recursive functions" are also often omitted)
Is it correct that the membership decision problem of a r.e. language is a partial recursive function, so can be computed by a TM?
What is the relation between recursive languages and total recursive functions? (The similarity in the two terms has led me to a lot of confusions and mix-ups.)
Thanks.
The other way around, funtions have both input and output, while language deciders take a word and end in a certain class of state (or loop forever). So if we want to consider what functions they can compute we usually look at the sets of ordered pairs $$\{(x,f(x)): x \text{ in the domain} \}.$$ And again one can show that just the partial recursive functions result in r.e. sets.