Search code examples
common-lispracketremove-if

Remove-if-not in Racket


In Common Lisp there is a famous built-in function called remove-if-not.

I could not find this on Racket`s documentation.

Did I miss something? Does Racket offer this function with a different name?


Solution

  • This function is available in Racket under the much more standard name, filter. Its inverse, the equivalent of CL’s remove-if, is available as filter-not.