Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str.zipWithIndex.map{ case (c, i) => c.toUpper + c.toLower.toString * i }.mkString("-")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement