Name

mismatch

Usage

builtin-function

Syntax

(mismatch seq1 seq2)
(mismatch test seq1 seq2)

Description

Returns the position of the first mismatch of two sequences. Returns null if the sequences match. The default equality test is =.

user > (mismatch '(1 2 3 4) '(1 2 3 4))
it: null
user > (mismatch '(1 2 3 4) '(1 2 x 4))
it: 2