# fantasy-tuples

> Tuple data structures.

Latest version **1.0.0** (published 2016-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install fantasy-tuples
pnpm add fantasy-tuples
yarn add fantasy-tuples
bun add fantasy-tuples
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-12-08 |
| First published | 2013-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Brian McKenna |
| Maintainers | joneshf, puffnfresh, stickupkid, trevorbasinger |
| Keywords | fantasyland, tuples, semigroup |

## Links

- npm: https://www.npmjs.com/package/fantasy-tuples
- Repository: https://github.com/puffnfresh/fantasy-tuples
- Homepage: https://github.com/puffnfresh/fantasy-tuples#readme
- Issues: https://github.com/puffnfresh/fantasy-tuples/issues
- npm.io page: https://npm.io/package/fantasy-tuples

## Dependencies (2)

- [daggy](https://npm.io/package/daggy.md) 0.0.x
- [fantasy-land](https://npm.io/package/fantasy-land.md) git+https://github.com/fantasyland/fantasy-land.git

## Recent versions

- 1.0.0 (latest) — 2016-12-08
- 0.0.1 — 2013-05-31

## README

# Fantasy Tuples

![](https://raw.github.com/puffnfresh/fantasy-land/master/logo.png)

## General

Tuples are another way of storing multiple values in a single value.
They have a fixed number of elements (immutable), and so you can't
cons to a tuple.
Elements of a tuple do not need to be all of the same type!

Example usage:

```javascript
var tuples = require('fantasy-tuples'),
    Tuple2 = tuples.Tuple2;

Tuple2(1, 2)._1; // 1   
```

## Testing

### Library

Fantasy Options uses [nodeunit](https://github.com/caolan/nodeunit) for 
all the tests and because of this there is currently an existing 
[adapter](test/lib/test.js) in the library to help with integration 
between nodeunit and Fantasy Check.

### Coverage

Currently Fantasy Check is using [Istanbul](https://github.com/gotwarlost/istanbul) 
for code coverage analysis; you can run the coverage via the following
command:

_This assumes that you have istanbul installed correctly._

```
istanbul cover nodeunit -- test/*.js
```

---
_Source: https://npm.io/package/fantasy-tuples · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
