Skip to main content

function

Retrieves a standard library function by name and configures its argument types and return type before returning the callable object.

def function(
name: string,
args: list,
restype: any
) - > callable

Configures and returns a standard call function pointer with specified argument and return types.

Parameters

NameTypeDescription
namestringThe name of the library function to be retrieved via standard call.
argslistA sequence of types representing the expected data types for the function's arguments.
restypeanyThe expected data type of the value returned by the function.

Returns

TypeDescription
callableA callable function object with the defined argument types and return type signature applied.