Returns a function that gets the nth element of an array

  • Parameters

    • i: number

    Returns <T>(xs: T[], ...args: unknown[]) => T