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:
Matthew Butterick 2017-03-21 20:34:21 -07:00 committed by Matthew Flatt
parent 9f2db6a915
commit 333f602a70

View File

@ -664,7 +664,7 @@ Like @racket[assoc], but finds an element using @racket[eqv?].
Like @racket[assoc], but finds an element using @racket[eq?].
@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?])