Ruby 3.x - Lazy Evaluation, prioritized algorithms

We had a problem to the &lsquo;best&rsquo; fitting object within an array. In our case it was to find the object that would return the best metadata. But finding the &lsquo;best&rsquo; person to talk with is a similar problem. Let&rsquo;s say we have a list of employees and we want to find the best person to talk with about purchasing our product. class Person attr_reader :name , :rank , :role ,…