add interactive prompt
This commit is contained in:
parent
ce192b49f2
commit
94efde3e65
22 changed files with 599 additions and 138 deletions
|
|
@ -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},
|
||||
];
|
||||
]};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue