chickadee » chibi-diff » lcs-with-positions

lcs-with-positions a-ls b-ls #!optional (eq equal?)procedure

Variant of lcs which returns the annotated sequence. The result is a list of the common elements, each represented as a list of 3 values: the element,the zero-indexed position in a-ls where the element occured, and the position in b-ls.