(edits->script edits)
Create an EditScript instance from a vector of edits, like those obtained
through calling get-edits
on an EditScript
Create an EditScript instance from a vector of edits, like those obtained through calling `get-edits` on an EditScript
(delete-data this path)
(replace-data this path value)
(add-data this path value)
(auto-sizing this path value)
(set-size this size)
Set the size, return the script
Set the size, return the script
(get-dels-num this)
Report the number of deletions
Report the number of deletions
(get-reps-num this)
Report the number of replacements
Report the number of replacements
(get-size this)
Report the size of the editscript
Report the size of the editscript
(combine this that)
Concate that editscript onto this editscript, return the new editscript
Concate that editscript onto this editscript, return the new editscript
(get-adds-num this)
Report the number of additions
Report the number of additions
(get-edits this)
Report the edits as a vector
Report the edits as a vector
(edit-distance this)
Report the edit distance, i.e number of operations
Report the edit distance, i.e number of operations
(get-type this)
Return a type keyword, :val, :map, :lst, etc.
Return a type keyword, :val, :map, :lst, etc.
(nada)
A special type means 'not present'
A special type means 'not present'
(valid-edits? edits)
Check if the given vector represents valid edits that can be turned into an EditScript
Check if the given vector represents valid edits that can be turned into an EditScript
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close