Skip to content

Commit

Permalink
Fixed program to no longer use the keyword sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert van Renesse committed Nov 28, 2024
1 parent 079769c commit 2a459c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/qsort.hny
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def sortrange(qs, range):
if (pivot + 1) < hi:
qs->todo |= { (pivot + 1, hi) }

def sort(qs) returns sorted:
def sort(qs) returns sorted_list:
while qs->todo != {}:
let range = choose(qs->todo):
qs->todo -= { range }
sortrange(qs, range)
sorted = qs->arr
sorted_list = qs->arr

0 comments on commit 2a459c5

Please sign in to comment.