ktuples 0.0.9 copy "ktuples: ^0.0.9" to clipboard
ktuples: ^0.0.9 copied to clipboard

Collection of Kotlin-inspired tuple-like structures, from Pair to Quintuple

example/main.dart

import 'package:ktuples/ktuples.dart';

void main() {
  // Example for `Pair`, other tuples work the same
  const pair = Pair('meaning of life', 42);
  print(pair); // Pair<String, int>: meaning of life, 42

  print(pair == const Pair('meaning of life', 42)); // true
  print(pair == const Pair('meaning of life', 43)); // false
}
0
likes
160
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

Collection of Kotlin-inspired tuple-like structures, from Pair to Quintuple

Repository (GitHub)

Topics

#kotlin #tuples #utility

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, meta

More

Packages that depend on ktuples