TypeTensor - v0.1.0
    Preparing search index...

    Type Alias AllButLast<S>

    AllButLast: S extends readonly [...(infer Init), unknown]
        ? Init extends readonly unknown[] ? Init : never
        : never

    Get all dimensions except the last one

    Type Parameters

    type AllButLast = AllButLast<[2, 3, 4]> // readonly [2, 3]