tupleWithout

fun tupleWithout(originalTuple: A_Tuple, elementToExclude: A_BasicObject): A_Tuple

Construct a new tuple of arbitrary Avail objects based on the given tuple, but with an occurrence of the specified element missing, if it was present at all. The elements may end up being shared between the original and the copy, so the client must ensure that either the elements are marked immutable, or one of the copies is not kept after the call. If the element is not found, then answer the original tuple.

Return

The new tuple.

Parameters

originalTuple

The original tuple of Avail objects on which to base the new tuple.

elementToExclude

The element that should should have an occurrence excluded from the new tuple, if it was present.