Get GoTTY running in your browser.
Go to Source, select gotty.js and pause.
Within the Scope section, within Local variables, there's a this.
Go to this.profs_, right-click and save as global variable.
Go over the console and run something like:
| >>> a = [1, 2, 3, 4, 5] | |
| >>> a.splice.apply(a, [2, 0].concat(['a','b'])) | |
| [] | |
| >>> a | |
| [1, 2, "a", "b", 3, 4, 5] | |
| >>> a = [1, 2, 3, 4, 5] | |
| >>> a.splice(2, 0, 'a') | |
| [] | |
| >>> a |
| git diff --ignore-space-at-eol -b -w --ignore-blank-lines |
Get GoTTY running in your browser.
Go to Source, select gotty.js and pause.
Within the Scope section, within Local variables, there's a this.
Go to this.profs_, right-click and save as global variable.
Go over the console and run something like:
| var bind = function(f) { | |
| return function(tuple) { | |
| var x = tuple[0], | |
| s = tuple[1], | |
| fx = f(x), | |
| y = fx[0], | |
| t = fx[1]; | |
| return [y, s + t]; | |
| }; |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
| font-size: 16px; | |
| line-height: 1.5; | |
| word-wrap: break-word | |
| } | |
| body::before { | |
| display: table; | |
| content: "" | |
| } |