Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: sdk/lib/core/iterable.dart

Issue 451633003: Make Iterable.toSet say that it returns a Set with the same equality as the Iterable's contains met… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/collection/splay_tree.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index 6d10da9fa125fbe1b17cc9329c0bcf4544baa6c9..a6bf3e92eb55de094879047904c82c1dd6b0b037 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -174,11 +174,11 @@ abstract class Iterable<E> {
/**
* Creates a [Set] containing the same elements as this iterable.
*
- * The returned `Set` will have the same `Set.length`
- * as the `length` of this iterable,
- * and its `Set.contains` will return the same result
- * as the `contains` of this iterable.
- * The order of the elements may be different.
+ * The set may contain fewer elements than the iterable,
+ * if the iterable contains the an element more than once,
+ * or it contains one or more elements that are equal.
+ * The order of the elements in the set is not guaranteed to be the same
+ * as for the iterable.
*/
Set<E> toSet();
« no previous file with comments | « sdk/lib/collection/splay_tree.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698