computeSliceType

fun computeSliceType(    tupleType: A_Type,     startIndexType: A_Type,     endIndexType: A_Type): A_Type

Compute the types that can be produced by extracting a subrange of a tuple having the given tupleType, starting at an index that falls in the integer range type startIndexType, and ending at an index that falls in the integer range type endIndexType.

Return

The guaranteed type of the resulting tuple, in the event that it's successful.

Parameters

tupleType

The type of the tuple being sliced.

startIndexType

An integer range type bounding the possible slice starting index.

endIndexType

An integer range type bounding the possible slice ending index.