- make-diff:procedure
Creates a diff procedure, where
- EQUAL? is an equality predicate for elements of the type being compared;
- SEQ-REF is a procedure of the form LAMBDA SEQ INDEX -> ELEMENT which returns element INDEX from sequence SEQ;
- SEQ-LENGTH is a procedure of the form LAMBDA SEQ -> LEN which returns the length of sequence SEQ;
- HUNKS is a procedure of the type created by make-hunks, which is described below.
The returned procedure is of the form LAMBDA A B [CONTEXT-LEN] -> (HUNK ... ) where A and B are two sequences to be compared, and CONTEXT-LEN is an optional context length, which is used by the HUNKS procedure to create context in the hunks of the edit script