extractUniqueMethod

fun extractUniqueMethod(methodDefinitions: A_Tuple): A_Definition

Answer the sole A_Definition from the given tuple of definitions, raising a MethodDefinitionException if the tuple doesn't have exactly one element.

Return

The requested exception.

Parameters

methodDefinitions

A tuple of A_Definitions.

Throws

If the tuple did not contain exactly one definition.