- Stage 4: iterator helpers MVP
- Stage 4: iterator sequencing (
Iterator.concat) - Stage 3: joint iteration (
Iterator.zip,Iterator.zipKeyed) - Stage 2.7: iterator chunking (
.chunks,.windows) - Stage 2.7: iterator includes (
.includes) - Stage 2: async iterator helpers MVP (
AsyncIterator.prototype.*,Iterator.prototype.toAsync) - Stage 1: concurrency control (
AsyncIterator.prototype.*integration, some form of cancellation) - Stage 1: unordered async iterator helpers (
AsyncIterator.prototype.unordered, `
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[derive(Debug, PartialEq, Eq)] | |
| enum ArithmeticResult { | |
| Overflow, | |
| Underflow, | |
| Accurate, | |
| } | |
| fn oracle(a: i64, b: i64) -> ArithmeticResult { | |
| let a128 = i128::from(a); | |
| let b128 = i128::from(b); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _cp_ is matched by either |WhiteSpace| or |LineTerminator|, or _cp_ has the same numeric value as a leading surrogate or trailing surrogate, then [...] | |
| _func_ has a [[SourceText]] internal slot, _func_.[[SourceText]] is a sequence of Unicode code points, and HostHasSourceTextAvailable(_func_) is *true*, then [...] | |
| [id="step-assignmenttargettype-web-compat", normative-optional] If the host is a web browser or otherwise supports <emu-xref href="#sec-runtime-errors-for-function-call-assignment-targets" title></emu-xref> and IsStrict(this |CallExpression|) is *false*, then [...] | |
| <emu-not-ref>Record</emu-not-ref> that the binding for _N_ in _envRec_ has been initialized. | |
| Append (_WL_.[[MostRecentLeaveEvent]], _enterEvent_) to _eventsRecord_.[[AgentSynchronizesWith]]. | |
| Append [[ArrayBufferByteLengthData]] and [[ArrayBufferMaxByteLength]] to _slots_. | |
| Append scf(_cp_) to _t_. | |
| Append the GlobalSymbolRegistry Record { [[Key]]: _stringKey_, [[Symbol]]: _newSymbol_ } to the GlobalSymbolRegistry List. | |
| Append to _internalSl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function* pascalsTriangleRow(row) { | |
| let prev = 1; | |
| for(let i = 1; i <= row; ++i) { | |
| yield prev; | |
| prev = (prev * (row - (i - 1))) / i; | |
| } | |
| yield 1; | |
| } | |
| Array.from(pascalsTriangleRow(19)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function.prototype.once = function () { | |
| let fn = this; | |
| let called = false; | |
| return function() { | |
| if (!called) { | |
| called = true; | |
| return fn.apply(this, arguments); | |
| } | |
| }; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const safeApply = Date.call.bind(Date.apply); | |
| const randomName = () => Math.random().toString(36).slice(2).toLowerCase(); | |
| class RevokedCapabilityException extends Error {} | |
| class Capability { | |
| constructor(behaviour, { name = randomName() } = {}) { | |
| this.behaviour = behaviour; | |
| this.name = Object.freeze([].concat(name)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://github.com/michaelficarra/ecmascript-interfaces-proposal | |
| interface HasHashCode { | |
| hashCode; | |
| } | |
| class SetUsingHashCode extends Set { | |
| constructor(iterable) { | |
| super(); | |
| this.#map = new Map; | |
| for (let x of iterable) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git c/purescript.cabal i/purescript.cabal | |
| index 4f4fcabd..699e8440 100644 | |
| --- c/purescript.cabal | |
| +++ i/purescript.cabal | |
| @@ -231,6 +231,7 @@ library | |
| Language.PureScript.Sugar.TypeClasses | |
| Language.PureScript.Sugar.TypeClasses.Deriving | |
| Language.PureScript.Sugar.TypeDeclarations | |
| + Language.PureScript.Terms | |
| Language.PureScript.Traversals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function append(separator) { | |
| return typeof separator === "string" ? appender(separator, "") : appender("", "").apply(this, arguments); | |
| } | |
| function appender(separator, s) { | |
| return function tag(literalParts, ...computedParts) { | |
| s += literalParts[0]; | |
| for (let i = 1; i < literalParts.length; ++i) { | |
| s += computedParts[i - 1] + literalParts[i]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var getGlobal = (function(g) { | |
| if (g == null) { | |
| if (typeof System !== 'undefined' && System != null && System.global != null && System.global.System === System) g = System.global; | |
| else if (typeof self !== 'undefined' && self != null && self.self === self) g = self; | |
| else if (typeof window !== 'undefined' && window != null && window.window === window) g = window; | |
| else if (typeof global !== 'undefined' && global != null && global.global === global) g = global; | |
| } | |
| return function() { return g; }; | |
| }(this)); |
NewerOlder