Today I learned how to detect collisions between circles and rectangles with 100% accuracy.
This article proposes an implementation of an ergonomic binary search algorithm implemented as a bidirectional generator.
⎕←⎕ucs 2∘⊥∘⌽¨ ↓7 (⊢⍴⍨⊣,⍨÷⍨∘≢) ⍎¨ '0001011001011100101110000111110', '0111010111011110101111010101101', '1100001100101110001011110011100', '0011100001110111010110001111110111011011'