Following is a simple solution to the LeetCode's Reverse Words in a String problem.
def reverseWords(s: String) =
s.split (" ")
.reverse
.mkString(" ")
Lets execute it in the
This is an interesting article by @DanCast that attempts to answer a long-standing question: What does "Senior" entail in the role of “Senior” Software Engineer? A must read for any
"Functional Scala" is a set of tutorials on Scala programming language by Mario Gleichmann. Although a bit verbose, it introduces the key constructs of Scala, and outlines Scala's primary
This Scala tutorial, called "The Neophyte’s Guide to Scala" can be considered as an auxiliary resource of #progfun. It is particularly good at getting started with Scala, and to delve