inc

fun inc(replica: ReplicaId, by: Long = 1): Patch<GCounter>

Increment replica's own slot by by (must be positive). Returns the delta to merge in with piece; the receiver is unchanged.

Throws

if by is not positive.

if the slot would pass Long.MAX_VALUE. A wrapped count would be negative, and piece, a max, would discard it, so the increment would be lost on every replica with nothing to say so.