Define equality for sets · whatwg/infra@2c3dbce
OrKoN
·
2025-01-10
·
via Recent Commits to infra:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1728,6 +1728,9 @@ of either with <var>replacement</var> and <a for=set>remove</a> all other instan
|
1728 | 1728 | <p class=note>This implies that an <a>ordered set</a> is both a <a for=set>subset</a> and a |
1729 | 1729 | <a for=set>superset</a> of itself. |
1730 | 1730 | |
| 1731 | +<p>A [=/set=] |A| is <dfn export for=set>equal</dfn> to a [=/set=] |B| |
| 1732 | +if |A| is a [=subset=] of |B| and |A| is a [=superset=] of |B|. |
| 1733 | + |
1731 | 1734 | <p>The <dfn export for=set>intersection</dfn> of <a>ordered sets</a> |A| and |B|, is the result |
1732 | 1735 | of creating a new <a>ordered set</a> |set| and, <a for=list>for each</a> |item| of |A|, if |B| |
1733 | 1736 | <a for=set>contains</a> |item|, <a for=set>appending</a> |item| to |set|. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。