src/Pure/General/heap.ML
changeset 32784 1a5dde5079ac
parent 29606 fedb8be05f24
child 32939 1b5a401c78cb
equal deleted inserted replaced
32783:e43d761a742d 32784:1a5dde5079ac
    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;