I was wondering what language to use when talking about a function that takes in a specific object, acts on it and returns something else. Clearly they’re functions, but I was wondering if there’s a more specific term.
A couple examples of Python built-in functions that fit this spec are: ‘len’, ‘dir’, ‘vars’
I thought it was ‘predicate’, but apparently that’s specific to functions that return a boolean value.
There isn’t really a generic term for these kinds of functions, although Python internally uses ‘inquiry’ for this kind of function. I rarely see them described as anything other than just plain ‘function’, though.