callAsFunction(_:kwargs:)

Calls the receiver.

Declaration

@discardableResult
func callAsFunction(
    _ args: (
        any Parsable
    )?...,
    kwargs: [
        (
            String,
            (
                any Parsable
            )?
        )]
    ) throws -> Object

Parameters

  • args: Positional arguments.

  • kwargs: Keyword arguments.

Throws

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

Returns

The function’s result value.