/* IMPORTANT: Remove these directives when you start working on the code so that * the linter will warn you about code style issues. */ /* eslint-disable no-useless-constructor */ class MonoidElement { constructor() { // Implement this constructor per the assignment instructions. } get valid() { return false; // Implement this getter per the assignment instructions. } } export const IDENTITY_ELEMENT = new MonoidElement(); // Define this object per the assignment instructions. export function encodeAsMonoidElement(character) { return IDENTITY_ELEMENT; // Implement this function per the assignment instructions. } export function combineMonoidElements(left, right) { return IDENTITY_ELEMENT; // Implement this function per the assignment instructions. }