By name, type, and structure. In typescript for example:
let full_name = (in: { first: string, last: string }) => in.first + " " + in.last