equal
deleted
inserted
replaced
76 |
76 |
77 (* initial interval *) |
77 (* initial interval *) |
78 |
78 |
79 nonfix upto; |
79 nonfix upto; |
80 |
80 |
81 fun upto _ (h as Empty) = ([], h) |
81 fun upto _ Empty = ([], Empty) |
82 | upto limit (h as Heap (_, x, a, b)) = |
82 | upto limit (h as Heap (_, x, _, _)) = |
83 (case ord (x, limit) of |
83 (case ord (x, limit) of |
84 GREATER => ([], h) |
84 GREATER => ([], h) |
85 | _ => upto limit (delete_min h) |>> cons x); |
85 | _ => upto limit (delete_min h) |>> cons x); |
86 |
86 |
87 end; |
87 end; |