Doc: more illustrative example for the filter-map function (#3066)
This commit is contained in:
parent
b4dd4684d9
commit
6685120c0a
|
@ -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?] ...+)
|
||||
|
|
Loading…
Reference in New Issue
Block a user