DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SCALA
scala reverse string
def reverse(s: String) : String = (for(i <- s.length - 1 to 0 by -1) yield s(i)).mkString
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#scala
#reverse
#string
ADD COMMENT
Topic
COMMENT
Name
6+8 =
Submit