Improve assq
example
Let me `assq` something: doesn’t it seem inapt to demonstrate this function with integers, when `eq?` doesn’t give consistent results for numbers?
This commit is contained in:
parent
9f2db6a915
commit
333f602a70
|
@ -664,7 +664,7 @@ Like @racket[assoc], but finds an element using @racket[eqv?].
|
||||||
Like @racket[assoc], but finds an element using @racket[eq?].
|
Like @racket[assoc], but finds an element using @racket[eq?].
|
||||||
|
|
||||||
@mz-examples[
|
@mz-examples[
|
||||||
(assq 3 (list (list 1 2) (list 3 4) (list 5 6)))]}
|
(assq 'c (list (list 'a 'b) (list 'c 'd) (list 'e 'f)))]}
|
||||||
|
|
||||||
|
|
||||||
@defproc[(assf [proc procedure?] [lst list?])
|
@defproc[(assf [proc procedure?] [lst list?])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user