8 lines
361 B
JavaScript
8 lines
361 B
JavaScript
// 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;
|