A notebook range represents an ordered pair of two cell indices. It is guaranteed that start is less than or equal to end.
A notebook range represents an ordered pair of two cell indices. It is guaranteed that start is less than or equal to end.
(empty? notebook-range)
true
if start
and end
are equal.
Returns: boolean
`true` if `start` and `end` are equal. **Returns:** `boolean`
(end notebook-range)
The exclusive end index of this range (zero-based).
Returns: number
The exclusive end index of this range (zero-based). **Returns:** `number`
(start notebook-range)
The zero-based start index of this range.
Returns: number
The zero-based start index of this range. **Returns:** `number`
(with notebook-range change)
Derive a new range for this range.
Parameters:
change
: { start?: number | undefined; end?: number | undefined; }
- An object that describes a change to this range.Returns: NotebookRange
- A range that reflects the given change. Will return this
range if the change
is not changing anything.
Derive a new range for this range. **Parameters:** - `change`: `{ start?: number | undefined; end?: number | undefined; }` - An object that describes a change to this range. **Returns:** `NotebookRange` - A range that reflects the given change. Will return `this` range if the change is not changing anything.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close