Skip to content

Conversation

@Bpendragon
Copy link
Contributor

Functions Added:

  • ToLongArray(this IEnumerable) Same as ToIntArray() but with longs
  • Combinations(this IEnumerable, int subcount) Returns the combinations of length subcount
  • Permutations(this IEnumerable, int subcount) Returns the permutations of length subcount
  • Rotate(this IEnumerable) Rotates an array by a number of steps
  • AllIndexesOf() like IndexOf() but all instances
  • Utilities.WriteLine() Writes to both Trace and Console

Functions Modified:

  • FindGCD(int a, int b) if b == 0 the function would Either recurse infinitely to the point of stack overflow or throw a DivideByZeroException now exits immediately if either supplied value is 0.

General Changes:

  • converted default<T> => default

Copy link
Owner

@sindrekjr sindrekjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'm hoping to add some test coverage for these utilities eventually.

@sindrekjr sindrekjr merged commit abd6dd1 into sindrekjr:master Dec 10, 2020
@sindrekjr
Copy link
Owner

Squashed to adhere to conventional commit format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants