×

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: 2095
Tags: reverse scala
  1. def reverseWords(s: String): String = s.split(' ').reverse.mkString(" ")