add interactive prompt

This commit is contained in:
Joeri Exelmans 2025-03-20 09:54:11 +01:00
parent ce192b49f2
commit 94efde3e65
22 changed files with 599 additions and 138 deletions

View file

@ -36,15 +36,15 @@ export const makeSquare = ({i: mul, t: mulFunction}) => {
}
const square = x => mul(x)(x);
const squareFunction = fnType({in: numType, out: numType});
return [
return {l:[
{i: square , t: squareFunction},
{i: squareFunction, t: Function},
];
]};
};
const makeSquareType = fnType({in: Typed, out: Module});
export const ModuleSquare = [
export const ModuleSquare = {l:[
{i: makeSquare , t: makeSquareType},
{i: makeSquareType, t: Function},
];
]};