use fnType everywhere to create function types
This commit is contained in:
parent
a8260f2afb
commit
6023efc295
10 changed files with 33 additions and 27 deletions
5
typed.js
5
typed.js
|
|
@ -1,4 +1,4 @@
|
|||
import { getFnType } from "./function_registry.js";
|
||||
import { fnType } from "./function_registry.js";
|
||||
import {Type, Function} from "./metacircular.js";
|
||||
|
||||
export const Typed = Symbol('Typed');
|
||||
|
|
@ -6,8 +6,7 @@ export const Typed = Symbol('Typed');
|
|||
const getInst = lnk => lnk.i;
|
||||
const getType = lnk => lnk.t;
|
||||
|
||||
// const Typed_to_Type = {in: Typed, out: Type};
|
||||
const Typed_to_Type = getFnType(Typed, Type);
|
||||
const Typed_to_Type = fnType({in: Typed, out: Type});
|
||||
|
||||
export const ModuleTyped = [
|
||||
{i: Typed, t: Type},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue