Replace reverse with reversed or asReversed.

This commit is contained in:
Ilya Gorbunov
2015-10-01 19:07:55 +03:00
parent 37a0347669
commit b50c106648
17 changed files with 24 additions and 25 deletions
@@ -45,7 +45,7 @@ public fun topologicalSort<T>(items: Iterable<T>, dependencies: (T) -> Iterable<
for (item in items)
DfsVisit(item)
return result.reverse()
return result.reversed()
}
public class CycleInTopoSortException : Exception()