varPositional(_:annotation:)

Creates a signature with a variable positional parameter.

Declaration

static func varPositional(
    _ name: String,
    annotation: (
        any Parsable
    )? = nil
) -> Signature

Parameters

  • name: The name of the parameter.

  • annotation: The annotation of the parameter.

Returns

A new signature with the variable positional parameter.