Skip to content

Releases: DusanKasan/Knapsack

Additional runtime checks and documentation updates

25 Apr 08:35
Compare
Choose a tag to compare
  • Breaking change: If inputFactory returns non-collection, throw InvalidReturnValue
  • Documentation updated

Huge performance improvements

14 Apr 13:39
Compare
Choose a tag to compare

Moving Collection from Iterator to Traversable allows for huge performance gains (some 4x improvement at the very least)

Transpose added

03 Apr 07:40
Compare
Choose a tag to compare
  • Transpose functionality adedd

PrintDump added

09 Jun 11:11
Compare
Choose a tag to compare
  • PrintDump function added, to make debugging easier. Prints debug output, but returns the original collection.

Dump added

09 Jun 11:10
Compare
Choose a tag to compare
  • Dump function added, to make debugging easier.

Only/extract bug fixed

09 Jun 11:10
Compare
Choose a tag to compare
  • Fixed bug: the only function always included the item with key equal to zero in the result. Caused by comparing string == 0. Also affected extract.

Replace by key functionality added

09 Jun 11:09
Compare
Choose a tag to compare
  • ReplaceByKeys function added

Sum and average return float/int as needed

09 Jun 11:08
Compare
Choose a tag to compare
  • Breaking change: sum function will return integer by default, float if there are float type elements
  • Breaking change: average function will not force return float and will return integer if the sum/count result is integer

Some of the utility functions integrated into Collection

09 Jun 11:07
Compare
Choose a tag to compare
  • The functionality of sum, average, min, max and concatenate moved into collection.
  • Sum collection function added
  • Average collection function added
  • Min collection function added
  • Max collection function added
  • ToString collection function added
  • Breaking change: sum utility function removed
  • Breaking change: average utility function removed
  • Breaking change: min utility function removed
  • Breaking change: max utility function removed
  • Breaking change: concatenate utility function removed

Size comparison functions added

27 May 15:06
Compare
Choose a tag to compare
  • sizeIsExactly function added
  • sizeIsGreaterThan function added
  • sizeIsLessThan function added
  • sizeIsBetween function added

Use these for size comparison as they don't need to traverse entire collection (if possible) to provide result.