import { IReactiveFunctionObservables } from '../../../reactive-function'; import { IObservable } from '../../../../../../../../type/observable.type'; import { distinctReactiveFunction } from '../../others/distinct-reactive-function'; export function reactiveAdd( ...observables: IReactiveFunctionObservables ): IObservable> { return distinctReactiveFunction( observables, add, ); } function add(a: number, b: number): number { return a + b; }