Welcome to mirror list, hosted at ThFree Co, Russian Federation.

scheme-library « t4018 « t - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82ea3df51085e893203b13963c73c7180563acbe (plain)
1
2
3
4
5
6
7
8
9
10
11
(library (my-helpers id-stuff) RIGHT
  (export find-dup)
  (import (ChangeMe))
  (define (find-dup l)
    (and (pair? l)
         (let loop ((rest (cdr l)))
           (cond
            [(null? rest) (find-dup (cdr l))]
            [(bound-identifier=? (car l) (car rest))
             (car rest)]
            [else (loop (cdr rest))])))))