Declaration
public abstract bool AllSame<T>(
int cell,
Func<int, T> predicate,
out T result
)
Summary
Determines if all values that are still possible in the specified
cell have the same value
when projected through the specified
predicate. For example, this can be used to determine
if all the values still possible are the same parity, or all primes/non-primes, etc.
Generic type parameters
T | This type parameter is not documented. |
Parameters
int | cell |
The cell to examine |
Func<int, T> | predicate |
The projection function to run each value through. |
out T | result |
Receives the projected value that all still possible values satisfy. |