chickadee » chibi-diff » write-diff

(write-diff diff #!optional (writer write-line-diffs) (out (current-output-port)))procedure

Utility to format the result of a diff to output port out (default (current-output-port)). Applies writer to successive diff chunks. writer should be a procedure of three arguments: (writer subsequence type out). subsequence is a subsequence from the original input,type is a symbol indicating the type of diff: 'same if this is part of the lcs, 'add if it is unique to the second input, or 'remove if it is unique to the first input. writer defaults to write-line-diffs,assuming the default line diffs.