Function toBucketSets

  • Reorganize learning buckets from a map representation to a list-of-sets representation.

    Returns

    a list of disjoint sets whose union is the set of cards in bucketMap, and where list[i] is the set of cards that bucketMap maps to i, for all i in [0, list.length).

    Parameters

    • bucketMap: Map<Flashcard, number>

      maps each flashcard to a (nonnegative integer) bucket number

    Returns Set<Flashcard>[]

Generated using TypeDoc