Ben Lerner
Ben Lerner
Isn't it just failing on "T isn't an object", and never getting to the field-level constraints?
The build failed due to unbound identifiers...
This is likely not quite what you mean to do -- right now this context _only_ provides 26 table functions, and nothing else. Pyret doesn't implicitly re-provide imported things (this...
The first two lines of the code-snippet _are_ contracts :) I kept the order that (I think) @schanzer requested in the planning doc; if you want to swap it, that's...
Where should these functions live? In a helper library? In essentials####? Somewhere else? `time-now` is defined by runtime itself, since it's a JS primitive, but these others are Pyret utility...
The table is Molecules | Species | Speed -- | -- | -- Na+ | ions | 5.00E-04 K+ | ions | 4.70E-04 O2 | small molecules | 2.30E+12 CO2...
I ran it and literally copied and pasted cpo's output. I see no problem on my machine. It runs in both Firefox and Chrome.
I see it now. This is a @ds26gte bug to fix: https://github.com/brownplt/code.pyret.org/blob/horizon/src/web/js/output-ui.js#L1402 passes in only three arguments to `toRepeatingDecimal`, but the definition at https://github.com/brownplt/pyret-lang/blob/horizon/src/js/base/js-numbers.js#L3910 expects four arguments. Looking at the...
Whatever this type-annotated delta is over the original file, we should be able to write unit tests for each such modified call site, right?
Under the hood, tables convert themselves to lists, and then use lists' [`sort-by`](https://github.com/brownplt/pyret-lang/blob/horizon/src/arr/trove/lists.arr) method, which uses a quicksort-like algorithm...which is written to be exactly unstable when it comes to ties....