Advertisement
Guest User

Untitled

a guest
May 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.27 KB | None | 0 0
  1. val rect = Rect()
  2.         digitArray.map {
  3.             paint.getTextBounds(it, 0, 1, rect)
  4.             Pair(rect.width(), rect.height())
  5.         }.reduce { acc, newPair ->
  6.             Pair(Math.max(acc.first, newPair.first), Math.max(acc.second, newPair.second))
  7.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement