import type { Show } from "@principia/prelude/Show"; /* * ------------------------------------------- * Show Map * ------------------------------------------- */ /** * @category Instances * @since 1.0.0 */ export const getShow = (SK: Show, SA: Show): Show> => ({ show: (m) => { let elements = ""; m.forEach((a, k) => { elements += `[${SK.show(k)}, ${SA.show(a)}], `; }); if (elements !== "") { elements = elements.substring(0, elements.length - 2); } return `Map([${elements}])`; } });