StackOverflow 文档 racket 教程 高阶函数 过滤 过滤 Created: November-22, 2018 filter 返回给定列表中每个项目的列表,给定谓词返回非 #f 值。 ;; Get only even numbers in a list > (filter even? '(1 2 3 4)) '(2 4) ;; Get all square numbers from 1 to 100 > (filter (lambda (n) (integer? (sqrt n))) (range 1 100)) '(1 4 9 16 25 36 49 64 81) 撰写折