mapNeighborhood

inline fun <ID : Any, T> Aggregate<ID>.mapNeighborhood(crossinline local: (ID) -> T): Field<ID, T>

Observes the value of an expression local across neighbors. Builds a Field with minimal communication, using only the minimal machinery required to verify the alignment state. This function is recommended over

neighboring(<constant value>)

as it does not actually share the constant with neighbors.