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
|
|
@ -1,3 +1,4 @@
|
|||
import { fnType } from "../function_registry.js";
|
||||
import {Function} from "../metacircular.js";
|
||||
|
||||
// import {Typed} from "../typed.js";
|
||||
|
|
@ -29,7 +30,7 @@ import {Function} from "../metacircular.js";
|
|||
|
||||
// generates explicitly typed id-function
|
||||
export const makeIdFn = typ => {
|
||||
const Typ_to_Typ = {in: typ, out: typ};
|
||||
const Typ_to_Typ = fnType({in: typ, out: typ});
|
||||
const id = x => x;
|
||||
return [
|
||||
{i: id , t: Typ_to_Typ},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue