neighboring
abstract fun <Scalar> neighboring(local: Scalar, dataSharingMethod: DataSharingMethod<Scalar>): Field<ID, Scalar>
Observes the value of an expression local across neighbours.
Example
val field = neighboring(0)Content copied to clipboard
The field returned has as local value the value passed as input (0 in this example).
val field = neighboring({ 2 * 2 })Content copied to clipboard
In this case, the field returned has the computation as a result, in form of a field of functions with type () -> Int.