The sequence-diff Module¶
Overview¶
The sequence-diff module implements an algorithm that accomplishes something similar to the Unix diff utility. (Your actual diff utility may or may not use this algorithm, but it does something similar.)
Algorithm is by Webb Miller and Eugene W. Myers, published as “A File Comparison Program”, p. 1025-1040 of Software–Practice and Experience, November 1985. Quite frankly the algorithm is rather incomprehensible in source code form, so you might want to think about getting the paper.
Reference¶
TODO: These docs are just an auto-generated skeleton so far. https://github.com/dylan-lang/collection-extensions/issues/2
- <delete-entry> Class¶
- Superclasses:
- <insert-entry> Class¶
- Superclasses:
- Init-Keywords:
source-index (required) – An instance of
<object>
.
- <script-entry> Abstract Class¶
- dest-index Generic function¶
- Signature:
dest-index (object) => (value)
- Parameters:
object – An instance of
<script-entry>
.
- Values:
value – An instance of
<object>
.
- element-count Generic function¶
- Signature:
element-count (object) => (value)
- Parameters:
object – An instance of
<script-entry>
.
- Values:
value – An instance of
<object>
.
- sequence-diff Generic function¶
- Signature:
sequence-diff (s1 s2) => (script)
- Parameters:
s1 – An instance of
<sequence>
.s2 – An instance of
<sequence>
.
- Values:
script – An instance of
<script>
.
- source-index Generic function¶
- Signature:
source-index (object) => (value)
- Parameters:
object – An instance of
<insert-entry>
.
- Values:
value – An instance of
<object>
.