David Piepgrass
David Piepgrass
What environment are you running in? I don't have a reason to think that CommonJS modules are broken inside apps that use `"type": "module"`. Node.js documentation [just says](https://nodejs.org/docs/latest-v13.x/api/esm.html#esm_enabling): > Node.js...
How are you importing it? `import BTree from 'sorted-btree';` should work. But if not, try this: import BTree_ from 'sorted-btree'; const BTree = (BTree_ as any).default as typeof BTree_; Let...
Please try the code above and let me know how it goes.
Unfortunately I don't understand the cause of the problem, and I am generally too busy to investigate, so it is unlikely that I will find time to figure out the...
`BTree` should be serialized in array form, like this: ~~~ let btree1 = new BTree([[1, 'one'], [2, 2.22]]); let json = JSON.stringify([... btree1.entries()]); let btree2 = new BTree(JSON.parse(json)); ~~~ If...
What do you mean?
`ToList` is provided by LINQ and returns `List`, not `AList`. To ensure the data type is AList, you would have to call methods provided by `AList`. For example, instead of...
Loyc.Syntax implements [Loyc trees](http://loyc.net/loyc-trees/), which only define literals, identifiers, calls and attributes. EC# is defined in terms of these concepts. For example `class Foo {}` is represented as a call...
It should be understood that Loyc trees themselves do not understand classes, functions, events, properties or anything else. Loyc trees are like XML: XML doesn't understand that `This` is a...
Hi, sorry for not replying to this. I suggest adding an extension method for this. I definitely don't want to throw an exception like `Math.Abs(int.MinValue)` (it's very surprising behavior) so...