public static BoolArray Range(int start, int end, bool value) { BoolArray array = new BoolArray(end - start); for (int i = start; i < end; i++) { array.Add(value); } return(array); }
public BoolArray Where(QueryEvent <Boolean> test) { BoolArray list = new BoolArray(); for (int i = 0; i < length; i++) { Boolean t = Boolean.ValueOf(Get(i)); if (test.Hit(t)) { list.Add(t.BooleanValue()); } } return(list); }