import { fetchStudents } from "./student-ENV.ts"; import { Group, buildGroups, _groups } from "./group.ts"; /** * Fetch all Groups and return them as a map. */ async function fetchGroups() { if (_groups.size) { return _groups; } // Fetch all students and build the groups from them const students = await fetchStudents(); buildGroups(students); return _groups; } export { Group, buildGroups, fetchGroups };