Method Pike.get_first_arg_type()


Method get_first_arg_type

type|zero get_first_arg_type(type fun_type)

Description

Check if a function of the type fun_type may be called with an argument, and return the type of that argument.

Returns

Returns the expected type of the first argument to the function.

Returns 0 (zero) if a function of the type fun_type may not be called with any argument, or if it is not callable.