Skip to content

2.3 • ⚠️📜 LICENSE CHANGE and index traversal

Latest

Choose a tag to compare

@KyNorthstar KyNorthstar released this 29 Sep 00:10
fef8e15

This release adds functions to safely traverse the indices of a bidirectional collection, and changes the license to be much more permissive.

All Changes: 2.2.2...2.3.0

Index Traversal (#23)

This adds the following counterparts which return nil if moving the index there would result in leaving the collection:

  • indexOrNil(before:) as a counterpart to index(before:)
  • indexOrNil(after:) as a counterpart to index(after:)
  • formIndexOrNil(before:) as a counterpart to formIndex(before:)
  • formIndexOrNil(after:) as a counterpart to formIndex(after:)
  • indexOrNil(_:offsetBy:) as a counterpart to index(_:offsetBy:)

License change (#22)

This removes almost all restrictions by replacing the previous license (BH-1-PS, a custom license with dubious legal implications) with The Fair License, an open license designed to be minimal and permissive.