OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Delegating wrappers for [Iterable], [List], [Set], [Queue] and [Map]. | 6 * Delegating wrappers for [Iterable], [List], [Set], [Queue] and [Map]. |
7 * | 7 * |
8 * Also adds unmodifiable views for `Set` and `Map`, and a fixed length | 8 * Also adds unmodifiable views for `Set` and `Map`, and a fixed length |
9 * view for `List`. The unmodifable list view from `dart:collection` is exported | 9 * view for `List`. The unmodifable list view from `dart:collection` is exported |
10 * as well, just for completeness. | 10 * as well, just for completeness. |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 * Returns a new set which contains all the elements of [this] and [other]. | 561 * Returns a new set which contains all the elements of [this] and [other]. |
562 * | 562 * |
563 * That is, the returned set contains all the elements of this [Set] and all | 563 * That is, the returned set contains all the elements of this [Set] and all |
564 * the elements of [other]. | 564 * the elements of [other]. |
565 * | 565 * |
566 * Note that the returned set will use the default equality operation, which | 566 * Note that the returned set will use the default equality operation, which |
567 * may be different than the equality operation [this] uses. | 567 * may be different than the equality operation [this] uses. |
568 */ | 568 */ |
569 Set<V> union(Set<V> other) => toSet()..addAll(other); | 569 Set<V> union(Set<V> other) => toSet()..addAll(other); |
570 } | 570 } |
OLD | NEW |