neighbouring

Observes the value of an expression type across neighbours.

Example

val field = neighbouring(0)

The field returned has as local value the value passed as input (0 in this example).

val field = neighbouring({ 2 * 2 })

In this case, the field returned has the result of the computation as local value.