0

My baseline for this questions comes from MIT's Structure and Interpretation of Computer Programs. In the book, a filter function is defined. I know that map is part of the spec, but I see nothing resembling filter.

EDIT: Specifically I'm referring to the spec here: http://www.schemers.org/Documents/Standards/R5RS/HTML/

stantona
  • 3,260
  • 2
  • 24
  • 28

1 Answers1

2

No. This SFRI specifically requests that a filter function be added because it is not present in R5RS. There is however a filter function defined in MIT-Scheme, and in R6RS, behaving exactly as one would expect.

Vitruvie
  • 2,327
  • 18
  • 25
  • That seems to be specific to MIT scheme only. I'm wondering whether a *filter* like function is part of the R5RS specification. For e.g, Gambit scheme does not have filter. – stantona Mar 07 '15 at 17:40
  • In a newer version of the Scheme report, [R6RS](http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-4.html#node_idx_208), we have `filter` amongst other higher order procedures. – Sylwester Mar 08 '15 at 00:19