duple 1.1.0
duple: ^1.1.0 copied to clipboard
Minimal tuple library for Dart.
Duple #
Minimal tuple library for Dart.
Usage #
Simple usage examples as follows. See accompanying tests for more specific examples.
Empty Tuple #
All EmptyTuples are identical.
import 'package:duple/duple.dart';
main() {
var emptyTuple = EmptyTuple();
assert(emptyTuple == new EmptyTuple());
}
One-Tuple #
import 'package:duple/duple.dart';
main() {
var oneTupleWithString = Tuple1<String>("hello world!");
var oneTupleWithInt = Tuple1<int>(1);
}