ソースを参照

tweak Interval.size

Alexander Rose 3 年 前
コミット
77139afe7f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/mol-data/int/impl/interval.ts

+ 1 - 1
src/mol-data/int/impl/interval.ts

@@ -16,7 +16,7 @@ export const start = Tuple.fst;
 export const end = Tuple.snd;
 export const min = Tuple.fst;
 export function max(i: Tuple) { return Tuple.snd(i) - 1; }
-export function size(i: Tuple) { return Tuple.snd(i) - Tuple.fst(i); }
+export const size = Tuple.diff;
 export const hashCode = Tuple.hashCode;
 export const toString = Tuple.toString;