dope2/primitives/char.js
2025-03-23 09:15:37 +01:00

11 lines
319 B
JavaScript

import { typedFnType } from "../structures/function.js";
import { Type } from "../metacircular.js";
import {Char, Bool} from "./symbols.js";
const eq = x => y => x === y;
export const ModuleChar = {l:[
{i: Char, t: Type},
...typedFnType(eq, fnType => fnType({in: Char, out: fnType({in: Char, out: Bool})})),
]};