OT v0.1.0 OT.Text.Operation
A list of components that iterates over and/or modifies a piece of text
Summary
Types
An operation, which is a list consisting of OT.Text.Component.retain/0
,
OT.Text.Component.insert/0
, and OT.Text.Component.delete/0
components
Functions
Append a component to an operation
Invert an operation
Join two operations into a single operation
Types
An operation, which is a list consisting of OT.Text.Component.retain/0
,
OT.Text.Component.insert/0
, and OT.Text.Component.delete/0
components
Functions
Append a component to an operation.
Example
iex> OT.Text.Operation.append([%{i: "Foo"}], %{i: "Bar"})
[%{i: "FooBar"}]