Function arrayArrayToLookupArray

  • Parameters

    • array_array: number[][]

      an array of arrays of numbers

    Returns boolean[][]

    for every top level array, an array that contains true values at every index of a number in the array.

    Description

    Convert an array of arrays of numbers into an array of array of booleans where the booleans are at the index positions of the numbers, making this array act as a quick hash lookup for whether or not an index exists.