Insert

@Serializable
data class Insert<V>(val id: RgaId, val value: V, val after: RgaId) : RgaOp<V>

Insert value with identity id immediately after the element whose id is after (RgaId.HEAD means "insert at the front").

Concurrent inserts after the same after are resolved by id: the larger id wins the slot immediately after after; the smaller id follows.

Constructors

Link copied to clipboard
constructor(id: RgaId, value: V, after: RgaId)

Properties

Link copied to clipboard
Link copied to clipboard
val id: RgaId
Link copied to clipboard
val value: V