export function keysFactory<K, V> (groups: Grouping<K, V>): KeysCollector<K> {
  return () => {
    return groups.map((g) => g.key)
  }
}