List<num> toArray() => elements.asMap().entries.fold([], (accum, entry) => (entry.key.isOdd) ? (accum..add(entry.value)) : accum);