invariant_collection 1.0.12 copy "invariant_collection: ^1.0.12" to clipboard
invariant_collection: ^1.0.12 copied to clipboard

Invariant versions of standard collection types using extension types. As of version 1.0.11, the kinds which are implemented are `Iterable`, `List`, `Set`, and `Map`.

1.0.12 #

  • Remove methods that are inherently incompatible with preservation of invariance (only special cases for the values of type arguments would not cause the invariance property to be violated).

1.0.11 #

  • Improve README.md.

1.0.10 #

  • Improve example.dart, add assertions about isInvariant to the getters iIterable, iList, iSet, iMap.

1.0.9 #

  • Improve README.md.

1.0.8 #

  • Reorganize libraries in order to enable implements of private types. This is needed in order to make IList<T> assignable to IIterable<T>, and similarly for other collection types.
  • Add library invariant_set.dart, providing the extension type ISet.

1.0.7 #

  • Add library invariant_iterable.dart, providing the extension type IIterable. Add members of IList where this type is used.

1.0.6 #

  • Add library invariant_collection.dart, exporting invariant_list.dart. This library will export all the other libraries in this package.

1.0.5 #

  • Update README.md text about the assertion.

1.0.4 #

  • Extended and improved README.md.
  • Added IList constructor that asserts isInvariant, to enable a safe way (when assertions are enabled) to obtain an IList from a given List.

1.0.3 #

  • Extended README.md further.

1.0.2 #

  • Extended README.md substantially.

1.0.1 #

  • Add DartDoc comments.

1.0.0 #

  • Initial version.
2
likes
160
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Invariant versions of standard collection types using extension types. As of version 1.0.11, the kinds which are implemented are `Iterable`, `List`, `Set`, and `Map`.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

meta

More

Packages that depend on invariant_collection