Doc: more illustrative example for the filter-map function (#3066)

This commit is contained in:
sorawee 2020-03-05 18:46:15 -08:00 committed by GitHub
parent b4dd4684d9
commit 6685120c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1243,7 +1243,7 @@ because @racket[filter-map] avoids
building the intermediate list.
@mz-examples[#:eval list-eval
(filter-map (lambda (x) (and (positive? x) x)) '(1 2 3 -2 8))]}
(filter-map (lambda (x) (and (negative? x) (abs x))) '(1 2 -3 -4 8))]}
@defproc[(count [proc procedure?] [lst list?] ...+)