RxExt.Invert

This commit is contained in:
Justin Swanson 2019-11-09 19:21:56 -06:00
parent 197d2317f9
commit bf9c315a2f

View File

@ -168,5 +168,10 @@ namespace Wabbajack
.Select(x => x as R)
.NotNull();
}
public static IObservable<bool> Invert(this IObservable<bool> source)
{
return source.Select(x => !x);
}
}
}