Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coast-team/dotted-logootsplit
/ functions
Functions
378 in github.com/coast-team/dotted-logootsplit
⨍
Functions
378
◇
Types & classes
63
↓ 148 callers
Method
insertAt
* [Mutation] * Insert {@link items } at {@link index}. * * @param index 0-based index; Where to insert. * @param items elements to
src/core/op-replicated-list.ts:145
↓ 139 callers
Method
compare
* @example * a.compare(b) == Ordering.Before if a < b * * @param other * @return this [Order relation] {@link other}.
src/core/block.ts:314
↓ 135 callers
Function
assert
(test: Lazy<boolean>, msg: string)
src/util/assert.ts:17
↓ 107 callers
Function
isU32
(n: unknown)
src/util/number.ts:22
↓ 106 callers
Method
concatenated
* @param prefix * @return Concatenated version prefixed by `prefix`.
src/core/delta-replicated-list.ts:86
↓ 101 callers
Method
from
* @example * Anchor(p, false) is just before p * Anchor(p, true) is just after p * There does not exist a position between Anchor(p) an
src/core/anchor.ts:28
↓ 79 callers
Method
insert
@Override
src/list/avl/op-avl-list.ts:97
↓ 74 callers
Function
titled
(defaultTitle: string)
test/list/macro.ts:51
↓ 64 callers
Method
compareBase
@override
src/pos/simple/simple-pos.ts:222
↓ 57 callers
Method
structuralHashCode
* Non-cryptographic way to approximate object identity. * Do not take the content into account.
src/core/block.ts:226
↓ 37 callers
Method
toLengthBlock
* @return Length block representation of this block.
src/core/block.ts:217
↓ 32 callers
Method
fromPlain
* @param posFromPlain * @param itemsFromPlain * @return function that accepts a value and attempt to build a block. * It returns the b
src/core/block.ts:111
↓ 31 callers
Method
concat
@override
src/core/concat.ts:84
↓ 28 callers
Method
removeAt
* [Mutation] * Remove a number of {@link length } elements from {@link index } * * @param index 0-based index. * @param length Num
src/core/op-replicated-list.ts:155
↓ 28 callers
Method
splitAt
* @example * b.splitAt(n) == [b.leftSplitAt(n), b.rightSplitAt(n)] * * @param index 0-based index * 0 < {@link index } < {@li
src/core/block.ts:414
↓ 23 callers
Method
insertRight
@Override
src/list/avl/avl-list-node.ts:346
↓ 21 callers
Function
isObject
(x: unknown)
src/util/data-validation.ts:26
↓ 20 callers
Method
intDistance
@override
src/pos/simple/simple-pos.ts:174
↓ 19 callers
Method
copy
* @return Deep copy of this.
src/pos/simple/simple-block-factory.ts:174
↓ 19 callers
Method
remove
@Override
src/list/avl/op-avl-list.ts:109
↓ 18 callers
Method
applyDelta
(delta: LengthBlock<P> | Block<P, E>)
src/core/delta-replicated-list.ts:211
↓ 18 callers
Method
rightSplitAt
* @example * Block(p, "ab").rightSplitAt(1) == Block(p+1, "b") * Block(p, "ab").rightSplitAt(0) == Block(p, "ab") * * @param index
src/core/block.ts:398
↓ 17 callers
Function
heavyAssert
(test: Lazy<boolean>, msg: string)
src/util/assert.ts:31
↓ 17 callers
Method
insertable
@Override
src/list/avl/op-avl-list.ts:88
↓ 17 callers
Method
leftSplitAt
* @example * Block(p, "ab").leftSplitAt(1) == Block(p, "a") * Block(p, "ab").leftSplitAt(2) == Block(p, "ab") * * @param index 0-b
src/core/block.ts:379
↓ 16 callers
Function
compareU32
(n1: u32, n2: u32)
src/util/number.ts:33
↓ 16 callers
Method
fromLength
* @param lower {@link IntInterval#lower } * @param length {@link IntInterval#length } * @return New range.
src/core/u32-range.ts:56
↓ 14 callers
Method
anchorAt
* @param index index where the anchor is * @param isAfter Is the anchor after `index`? * @return anchor at `index`. * The anchor is st
src/core/op-replicated-list.ts:135
↓ 14 callers
Method
balance
()
src/list/avl/avl-list-node.ts:149
↓ 14 callers
Method
setLeft
(l: Node<P, E>)
src/list/avl/avl-list-node.ts:88
↓ 14 callers
Method
setRight
(r: Node<P, E>)
src/list/avl/avl-list-node.ts:98
↓ 13 callers
Method
depth
* Number of part in {@link SimplePosPart#parts }.
src/pos/simple/simple-pos.ts:149
↓ 13 callers
Method
depth
* Number of part in {@link SimplePosPart#parts }.
src/dot-pos/simple/simple-dot-pos.ts:140
↓ 13 callers
Method
upper
* Upper bound.
src/core/u32-range.ts:111
↓ 12 callers
Function
twinPosition
(ref: SimplePos)
test/pos/simple/pos.testutil.ts:10
↓ 12 callers
Function
twinPosition
(ref: SimpleDotPos)
test/dot-pos/simple/pos.testutil.ts:10
↓ 11 callers
Method
appendable
* @param other * this includes or overlaps after {@link other } * @return Part of this block which can be append to {@link block }.
src/core/block.ts:441
↓ 11 callers
Method
indexFrom
* @param anchor * @return A pair that includes the index of `anchor` in the block and * its order relation. * Ordering.EQUAL means th
src/core/block.ts:283
↓ 11 callers
Method
prependable
* @param other * this includes or overlaps before {@link other } * @return Part of this block which can be prepend to {@link block }.
src/core/block.ts:460
↓ 11 callers
Method
replace
(block: Block<P, E>)
src/list/avl/avl-list-node.ts:93
↓ 10 callers
Method
offset
* Offset of the position in the block.
src/pos/simple/simple-pos.ts:169
↓ 10 callers
Method
remove
(delta: LengthBlock<P>)
src/core/delta-replicated-list.ts:179
↓ 10 callers
Method
slice
@override
src/core/concat.ts:71
↓ 9 callers
Method
current
()
src/list/avl/avl-list-node.ts:188
↓ 9 callers
Method
hasIntSucc
@override
src/pos/simple/simple-pos.ts:216
↓ 9 callers
Method
leaf
( block: Block<P, E> )
src/list/avl/avl-list-node.ts:37
↓ 9 callers
Function
lexCompareOrdering
(r1: Ordering, r2: Ordering)
src/util/ordering.ts:56
↓ 8 callers
Method
balanceFactor
()
src/list/avl/avl-list-node.ts:110
↓ 8 callers
Method
insert
@Override
src/list/linked/op-linked-list.ts:101
↓ 8 callers
Method
intSucc
@override
src/pos/simple/simple-pos.ts:132
↓ 8 callers
Method
intersection
* @param other * this and {@link other } intersect. * @return Intersection part between this and {@link other }.
src/core/block.ts:475
↓ 8 callers
Method
splitWith
* @param other splitting block * {@link other } must split this * @return Left and right splits.
src/core/block.ts:428
↓ 8 callers
Method
withOffset
* @param offset The offset of the new position * @return Position with the same base, but with a different offset
src/pos/simple/simple-pos.ts:113
↓ 7 callers
Method
append
* @example * Block(p, "ab").append(Block(_, "cd")) == Block(p, "abcd") * * @param other * {@link other } is appendable to thi
src/core/block.ts:362
↓ 7 callers
Method
currentRelativeIndex
()
src/list/avl/avl-list-node.ts:192
↓ 7 callers
Method
nth
* Each position is generated for the `nth` generated block. * The pair (replica, nth) globally and uniquely identifies a block.
src/pos/simple/simple-pos.ts:162
↓ 7 callers
Method
seq
@override
src/dot-pos/simple/simple-dot-pos.ts:150
↓ 7 callers
Function
twinPositionPart
(ref: SimplePosPart)
test/pos/simple/pos.testutil.ts:6
↓ 7 callers
Method
withSeq
* @param seq The seq of the new position * @return Position with the same base, but with a different seq.
src/dot-pos/simple/simple-dot-pos.ts:108
↓ 6 callers
Method
hasAppendable
* @param other * @return Has this an appendable segment to {@link other }?
src/core/block.ts:254
↓ 6 callers
Method
hasPrependable
* @param other * @return Has this a prependable segment to {@link other }?
src/core/block.ts:267
↓ 6 callers
Function
hashCodeOf
(values: readonly u32[])
src/util/number.ts:50
↓ 6 callers
Method
insert
(delta: Block<P, E>)
src/core/delta-replicated-list.ts:169
↓ 6 callers
Method
isBaseEqual
@override
src/pos/simple/simple-pos.ts:254
↓ 6 callers
Function
twinPositionPart
(ref: SimpleDotPosPart)
test/dot-pos/simple/pos.testutil.ts:6
↓ 6 callers
Method
updated
()
src/list/avl/avl-list-node.ts:167
↓ 5 callers
Method
hasIntPred
* hasIntPred(0) is always true. * * See also {@link Pos#hasIntSucc }. * * @param n 0-based index. * @return is there a {@link
src/pos/simple/simple-pos.ts:210
↓ 5 callers
Method
insertable
* Complexity: O(1) * * @param delta * @return parts of `delta` that can be inserted.
src/core/delta-replicated-list.ts:120
↓ 5 callers
Method
max
()
src/list/avl/avl-list-node.ts:203
↓ 5 callers
Method
merge
* [Mutation] * Unidirectional merge from other to this. * This operation is idempotent. * * @param other * @return Performed
src/core/delta-replicated-list.ts:228
↓ 5 callers
Method
nthPos
* @example * b.nthPos(0) == b.lowerPos * b.nthPos(b.length - 1) == b.upperPos * * @param nth 0-based index * @return {@link n
src/core/block.ts:143
↓ 5 callers
Method
remove
@Override
src/list/linked/op-linked-list.ts:108
↓ 5 callers
Method
removeAtLeft
@Override
src/list/avl/avl-list-node.ts:449
↓ 5 callers
Method
removeAtRight
@Override
src/list/avl/avl-list-node.ts:460
↓ 5 callers
Method
replica
* Globally unique identifier of the author which generated this block.
src/core/block.ts:188
↓ 5 callers
Method
replica
@override
src/pos/simple/simple-pos.ts:154
↓ 4 callers
Method
anchor
* @param nth 0-based index * @param isAfter is the anchor after the `nth` position? * @return Anchor relative to the `nth` psoyion of the bl
src/core/block.ts:172
↓ 4 callers
Method
blockFromPlain
* See {@link BlockFactoryConstructor#blockFromPlain}
src/pos/simple/simple-block-factory.ts:126
↓ 4 callers
Method
compare
* @param other * @return this [order relation] other.
src/core/u32-range.ts:210
↓ 4 callers
Method
compareWith
* @example * Anchor(p).compareTo(q) == Ordering.Before if p <= q * * @param pos * @return Is before or after {@link pos}?
src/core/anchor.ts:97
↓ 4 callers
Method
fromPlain
* @param f * @param itemsFromPlain * @return function that accepts a value and attempt to build a list. * It returns the built list if
src/list/avl/op-avl-list.ts:38
↓ 4 callers
Method
insertable
@Override
src/list/linked/op-linked-list.ts:95
↓ 4 callers
Method
insertableLeft
@Override
src/list/avl/avl-list-node.ts:296
↓ 4 callers
Method
insertableRight
@Override
src/list/avl/avl-list-node.ts:304
↓ 4 callers
Function
lengthOf
( node: Node<P, E> )
src/list/avl/avl-list-node.ts:17
↓ 4 callers
Method
min
()
src/list/avl/avl-list-node.ts:196
↓ 4 callers
Method
posBetween
@override
src/pos/simple/simple-block-factory.ts:249
↓ 4 callers
Function
rankOf
(node: Node<P, E>)
src/list/avl/avl-list-node.ts:26
↓ 4 callers
Method
reduceBlock
(f: (acc: U, b: Block<P, E>) => U, prefix: U)
src/core/delta-replicated-list.ts:78
↓ 4 callers
Method
removeLeft
@Override
src/list/avl/avl-list-node.ts:427
↓ 4 callers
Method
removeRight
@Override
src/list/avl/avl-list-node.ts:438
↓ 4 callers
Method
seqs
* When each position of this block were generated.
src/core/block.ts:195
↓ 4 callers
Method
update
()
src/list/avl/avl-list-node.ts:103
↓ 3 callers
Method
asTuple
* @return [priority, replica, nth, offset]
src/pos/simple/simple-pos-part.ts:140
↓ 3 callers
Method
from
* The random generator is seeded with both globalSee>eplica. * * @param replica {@link SimpleBlockFactory#replica }> * @param globalSee
src/pos/simple/simple-block-factory.ts:65
↓ 3 callers
Method
fromPlain
* @param blockFromPlain * @return function that accepts a value and returns a Cell from * the value, or undefined if the value is mal-forme
src/list/linked/linked-list-cell.ts:465
↓ 3 callers
Method
insertLeft
@Override
src/list/avl/avl-list-node.ts:332
↓ 3 callers
Method
insertSuccessor
@Override
src/list/avl/avl-list-node.ts:322
↓ 3 callers
Method
isLengthBlock
* @return Is this block a length block?
src/core/block.ts:234
↓ 3 callers
Method
lastPart
* Last part of {@link SimplePosPart#parts }.
src/pos/simple/simple-pos.ts:142
next →
1–100 of 378, ranked by callers