2012-07-11 scalaでBWT変換 val str = "mississippi" (0 until str.size).map(i => (i, str.drop(i) + str.take(i)) ).sortWith(_._2 < _._2)