Function $tuple

  • Only valid as the expression of a return statement!

    Compiles directly to a multiple return in Lua. For example,

    return $tuple(123, "abc", true);
    

    will compile into

    return 123, "abc", true
    

    Type Parameters

    • T extends any[]

    Parameters

    • Rest ...values: T

    Returns LuaTuple<T>