blob: abfb494773b32049bc759ea9bc99f276c3ca7f12 [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// A pair of values.
class Pair<E, F> {
E first;
F last;
Pair(this.first, this.last);
/// Returns a [Comparator] that asserts that its first argument is comparable.
Comparator/*<T>*/ defaultCompare/*<T>*/() =>
(value1, value2) => (value1 as Comparable).compareTo(value2);