fantasy-tuples

Tuple data structures.

Showing:

Popularity

Downloads/wk

1K

GitHub Stars

15

Maintenance

Last Commit

5yrs ago

Contributors

3

Package

Dependencies

2

Size (min+gzip)

1.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Fantasy Tuples

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:

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

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

Testing

Library

Fantasy Options uses nodeunit for all the tests and because of this there is currently an existing adapter in the library to help with integration between nodeunit and Fantasy Check.

Coverage

Currently Fantasy Check is using 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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100