branching and very basic merging of slots
This commit is contained in:
parent
614e6c0fdb
commit
3978f7f835
32 changed files with 684 additions and 420 deletions
9
typeclasses/show.js
Normal file
9
typeclasses/show.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { cart2Str, NPoint2DCartesian, NPoint2DPolar, polar2Str } from "../lib/point.js";
|
||||
import { Type } from "../primitives/types.js";
|
||||
import { prettyT } from "../structures/types.js";
|
||||
|
||||
export const ShowInstances = new Map([
|
||||
[Type , {show: prettyT}],
|
||||
[NPoint2DCartesian, {show: cart2Str}],
|
||||
[NPoint2DPolar , {show: polar2Str}],
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue