Skip to content

Releases: MewsSystems/FuncSharp

Funcsharp 8.0.0

12 Oct 15:54
d785529
Compare
Choose a tag to compare

What's Changed

Added

  • Added methods for getting an empty collection instead of null. #148
  • Added extra numeric types such as NonNegativeLong and NonNegativeShort in #147
  • Added allocation free Match method that isn't lazy. #146
  • Partitioning method for splitting collections by condition. Also splitting collections of ITries or coproducts in #151 and #153
  • Method for unpacking a collection of tuples into multiple collections in #152

Updated

  • Made colection methods consistently crash when collection is null. Previously some methods would and others wouldn't. e.g. IsSingle, IsMultiple, SingleOption, FirstOption etc.
  • Disallowed changing the items within NonEmptyEnumerable.

Removed

  • Removed SafeSubstring extensions on a NonEmptyString.

Contributors

Full Changelog: v7.0.1...v8.0.0

FuncSharp 7.0.1

28 Aug 13:59
c1a742b
Compare
Choose a tag to compare

What's Changed

  • Option<T> is a struct type now to increase performance
  • Try<TSuccess, TError> is also a struct now. It no longer inherits Coproduct2<TSuccess, TError>.
  • various performance improvements of methods on Options and collections
  • overall changes to signature of various extensions methods.

What's Removed

  • IOption<T> interface has been removed
  • ITry<T, E> interface has been removed
  • Try<TSuccess, TError> no longer inherits Coproduct2<TSuccess, TError>.

What's Added

  • INonEmptyEnumerable<T> interface with a representation of NonEmptyEnumerable<T> has been created
  • ReadOnlyList static class exists for easy static creation of collections. (for example from params of other collections)
  • various numeric types have been created such as PositiveInt, PositiveDecimal, NonNegativeInt etc.

Contributors:
@KaliCZ @fpindej

Full Changelog: https://github.com/MewsSystems/FuncSharp/commits/v7.0.1