×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Scala
Posted by: osocron coder
Added: Sep 13, 2016 10:19 PM
Views: 8
Tags: reverse scala
Reverse words in a sentence
  1. def reverseWords(s: String): String = s.split(' ').reverse.mkString(" ")