apply method

int apply(
  1. String s1,
  2. String s2,
  3. Applicable ratio
)

Implementation

int apply(String s1, String s2, Applicable ratio) {
  var sorted1 = sort(s1);
  var sorted2 = sort(s2);

  return ratio.apply(sorted1, sorted2);
}