Skip to content

Commit

Permalink
Remove initial write_array in mergesort.hid
Browse files Browse the repository at this point in the history
  • Loading branch information
benburrill committed Nov 24, 2023
1 parent c31f20e commit cfdc8ed
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/mergesort.hid
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,9 @@ empty write_array(const int[] arr) {
}

empty @is_you(int[] arr) {
write("Before: ");
write_array(arr);
writeln();
progress(); // To show performance of @sort
@sort(arr);
progress();
write("After: ");
progress(); // To show time to run @sort
write("Sorted: ");
write_array(arr);
writeln();
}

0 comments on commit cfdc8ed

Please sign in to comment.