callAsFunction(_:)

Calls the receiver.

Declaration

@discardableResult
func callAsFunction(
    _ args: (
        any Parsable
    )?...
) throws -> Object

Parameters

  • args: Positional arguments.

Throws

An Exception in case of a Python exception. Otherwise, an Error.

Returns

The function’s result value.