Liking cljdoc? Tell your friends :D

editscript.edit


edits->scriptclj/s

(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
sourceraw docstring

EditScriptcljs

source

IEditclj/s≠protocol

delete-dataclj/s

(delete-data this path)

replace-dataclj/s

(replace-data this path value)

add-dataclj/s

(add-data this path value)

auto-sizingclj/s

(auto-sizing this path value)
source

IEditScriptclj/s≠protocol

set-sizeclj/s

(set-size this size)

Set the size, return the script

Set the size, return the script

get-dels-numclj/s

(get-dels-num this)

Report the number of deletions

Report the number of deletions

get-reps-numclj/s

(get-reps-num this)

Report the number of replacements

Report the number of replacements

get-sizeclj/s

(get-size this)

Report the size of the editscript

Report the size of the editscript

combineclj/s

(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-numclj/s

(get-adds-num this)

Report the number of additions

Report the number of additions

get-editsclj/s

(get-edits this)

Report the edits as a vector

Report the edits as a vector

edit-distanceclj/s

(edit-distance this)

Report the edit distance, i.e number of operations

Report the edit distance, i.e number of operations
source

ITypeclj/s≠protocol

get-typeclj/s

(get-type this)

Return a type keyword, :val, :map, :lst, etc.

Return a type keyword, :val, :map, :lst, etc.
source

nadaclj/s

(nada)

A special type means 'not present'

A special type means 'not present'
sourceraw docstring

valid-edits?clj/s

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close