KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm a newbie to scala, I'm just writing a simple function to reverse a given string: def reverse(s: String) : String for(i <- s.length - 1 to 0) yield s(i) the yield gives back a scala.collection.immutable.IndexedSeq[Char], and can not convert it to a String. (or is it something else?) how do i write this function ?
Tags (comma-separated)
Save Edits
Cancel