Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: bool AllSame<T>(int, Func<int, T>, out T)

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
  • Must derive from: System.IEquatable<T>.
This type parameter is not documented.

Parameters

intcell The cell to examine
Func<int, T>predicate The projection function to run each value through.
out Tresult Receives the projected value that all still possible values satisfy.