repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'ab/refs-various-fixes'
[alt-git.git]
/
t
/
t4018
/
scheme-library
blob
82ea3df51085e893203b13963c73c7180563acbe
1
(library (my-helpers id-stuff) RIGHT
2
(export find-dup)
3
(import (ChangeMe))
4
(define (find-dup l)
5
(and (pair? l)
6
(let loop ((rest (cdr l)))
7
(cond
8
[(null? rest) (find-dup (cdr l))]
9
[(bound-identifier=? (car l) (car rest))
10
(car rest)]
11
[else (loop (cdr rest))])))))