reversed method
Returns a list with elements in reversed order.
Implementation
KtList<T> reversed() {
if (this is KtCollection && (this as KtCollection).size <= 1) {
return toList();
}
final list = toMutableList();
list.reverse();
return list;
}