Package-level declarations

Types

Link copied to clipboard

The lambda context passed to the share function.

Link copied to clipboard
data class SharingResult<Initial, Return>(val toSend: Initial, val toReturn: Return)

Specifies the value toSend and the value toReturn of a SharingContext.yielding function.

Functions

Link copied to clipboard

Observes the value of an expression type across neighbours.

Link copied to clipboard
fun <Initial> AggregateContext.share(initial: Initial, transform: (Field<Initial>) -> Initial): Initial

share captures the space-time nature of field computation through observation of neighbours' values, starting from an initial value, it reduces to a single local value given a transform function and updating and sharing to neighbours of a local variable.

Link copied to clipboard

sharing captures the space-time nature of field computation through observation of neighbours' values, starting from an initial value, it reduces to a single local value given a transform function and updating and sharing to neighbours of a local variable.