public IList <bool> Execute(params IList <bool>[] srcs) { if (srcs == null) { throw new ArgumentNullException(nameof(srcs)); } if (srcs.Length < 2) { throw new ArgumentOutOfRangeException(nameof(srcs)); } var result = Series.And(srcs[0], srcs[1], Context); for (var i = 2; i < srcs.Length; i++) { var lastResult = result; result = Series.And(result, srcs[i], Context); Context?.ReleaseArray((Array)lastResult); } return(result); }
public IList <bool> Execute(IList <bool> source1, IList <bool> source2) { return(Series.And(source1, source2, Context)); }