Ver código fonte

tweak Interval.size

Alexander Rose 3 anos atrás
pai
commit
77139afe7f
1 arquivos alterados com 1 adições e 1 exclusões
  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;