# tuple 1.0.1

Tuple data structure




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'tuple:1.0.1'
```
Published: 2016-10-30T04:15:41.622Z
Expected archive SHA-256: a78a7d05f24dc97e359b84dcf8b91d6bfee6ec5a61cf7347951e58d167463509

Available in cache; verification: upstream_checksum
## Direct dependencies
- quiver_hashcode: >=1.0.0-dev.1 <1.1.0

## Package README (untrusted upstream documentation)
# Tuple data structure

- [Tuple2], [Tuple3]...

[![Build Status](https://travis-ci.org/kseo/tuple.svg)](https://travis-ci.org/kseo/tuple)
[![Coverage Status](https://coveralls.io/repos/kseo/tuple/badge.svg?branch=master&service=github)](https://coveralls.io/github/kseo/tuple?branch=master)

## Usage example

```dart
const t = const Tuple2<String, int>('a', 10);

print(t.item1); // prints 'a'
print(t.item2); // prints '10'
```

```dart
final t1 = const Tuple2<String, int>('a', 10);
final t2 = t1.withItem1('c');
// t2 is a new [Tuple2] object with item1 is 'c' and item2 is 10.
```

## Changelog
#### 1.0.1
   * Fix all strong-mode warnings and errors.

#### 1.0.0
   * Remove _hash function and use quiver_hashcode package instead.

#### 0.4.0
   * Add fromList factory constructor.
   * Add Tuple6 and Tuple7 classes.

#### 0.3.0
   * Add toList method.

#### 0.2.0
   * Rename PersistentTuple classes to Tuple; remove Tuple classes.
   * Rename each iN item to itemN.
   * Rename setIN to withItemN.

#### 0.1.2
   * Fix a bug in == operator of PersistentTuple classes.

#### 0.1.1
   * Add operator == and hashCode to classes, so that tuples may be used as
     keys in hashes.

#### 0.1.0
   * Initial release.







 
