Function isTrampolineThunk

Type guard to check whether a given value is a TrampolineThunk.

This function is used to distinguish between a final computation result (value) and a deferred computation (thunk).

  • Type Parameters

    • T

      The type of the value being checked.

    Parameters

    • value: Trampoline<T>

      The value to test.

    Returns value is TrampolineThunk<T>

    True if the value is a valid TrampolineThunk, false otherwise.