Reports calls like s.substring(0, x) replaceable with s.take(x).

Using a corresponding functions makes your code simpler.

The quick-fix replaces a substring call with take.

Example:


  fun foo(s: String) {
      s.substring(0, 10)
  }

After the quick-fix is applied:


  fun foo(s: String) {
      s.take(10)
  }