Skip to content

Commit

Permalink
fix meld length bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed May 22, 2024
1 parent 816dec9 commit 579c298
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/structure/Meld.re
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ let mk = (~l=Cell.empty, ~r=Cell.empty, w) => M(l, w, r);
let of_tok = (~l=Cell.empty, ~r=Cell.empty, tok) =>
mk(~l, Wald.of_tok(tok), ~r);

let length = (M(_, W(w), _): t) => Chain.length(w);

let is_empty =
fun
| M({meld: None, _}, W(([tok], [])), {meld: None, _}) =>
Expand Down Expand Up @@ -111,7 +109,7 @@ let split_subwald = (i, j, M(l, W((ts, cs)), r): t) => {
);
};

let size = m => Chain.length(to_chain(m));
let length = m => Chain.length(to_chain(m));

let unzip_cell = (step, m) => Chain.unzip_loop(step, to_chain(m));
let unzip_tok = (step, m) =>
Expand Down

0 comments on commit 579c298

Please sign in to comment.