ls lib/bqn/
BQN
CBQN's sorting and counting primitives.
- draft Counting without loops: Group, Classify and Indices in BQNFour ways to count how often each value occurs in a BQN list, what CBQN does inside each one, and why the inverse of Indices beats a hash map by a factor of 80.
- draft How CBQN sorts: choosing an algorithm by element typeCBQN picks insertion sort, counting sort, radix sort, bucket sort or Timsort by looking at how an array is stored, so the same million numbers sort in 0.4 ms or 70 ms.