🌈 搜索
📅  最后修改于: 2022-03-11 15:00:56.994000             🧑  作者: Mango
def reverse(s: String) : String = (for(i <- s.length - 1 to 0 by -1) yield s(i)).mkString