Explorar o código

tweak Interval.size

Alexander Rose %!s(int64=3) %!d(string=hai) anos
pai
achega
77139afe7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;