basic functionality, no generics
This commit is contained in:
commit
a8260f2afb
17 changed files with 615 additions and 0 deletions
14
primitives/bool.js
Normal file
14
primitives/bool.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import {Type, Function} from "../metacircular.js";
|
||||
import {Bool} from "./symbols.js";
|
||||
|
||||
const eqBool = x => y => x === y;
|
||||
|
||||
const Bool_to_Bool = {in: Bool, out: Bool};
|
||||
const Bool_to_Bool_to_Bool = {in: Bool, out: Bool_to_Bool};
|
||||
|
||||
export const ModuleBool = [
|
||||
{i: Bool , t: Type },
|
||||
{i: Bool_to_Bool , t: Function },
|
||||
{i: Bool_to_Bool_to_Bool , t: Function },
|
||||
{i: eqBool , t: Bool_to_Bool_to_Bool },
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue