median method

int median()

Implementation

int median() {
  List<int> list = toList();
  list.sort();
  return list[list.length ~/ 2];
}