progress and some refactoring
This commit is contained in:
parent
d236eca5e5
commit
d8ca2f3999
25 changed files with 376 additions and 163 deletions
8
primitives/symbol.js
Normal file
8
primitives/symbol.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// The functions are only defined here. For their types, see lib/symbol.js
|
||||
|
||||
// The point of having an explicit constructor for SymbolT, is that we can later swap it out for something that is (de-)serializable.
|
||||
export const constructSymbol = name => Symbol(name);
|
||||
|
||||
export const getName = symbol => symbol.description;
|
||||
|
||||
export const eqSymbol = a => b => a === b;
|
||||
Loading…
Add table
Add a link
Reference in a new issue