funcutils icon indicating copy to clipboard operation
funcutils copied to clipboard

Minor improvements

Open Palaolitico opened this issue 8 months ago • 0 comments

Some minor changes that I think improve the code:

  • Some case analyses have been simplified.
  • Some typos using eq instead of cmp are fixed.
  • Added length 2 arrays as a base case for shuffle. Otherwise, shuffle([a,b]) will make an identical recursive call with probability 0.5. Simple benchmarking shows a 25% performance improvement.

Palaolitico avatar May 05 '25 15:05 Palaolitico