Skip to main content
Code Review

Return to Question

Commonmark migration
Source Link
[source](https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-15.html#%_sec_2.2.1)

source

[source](https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-15.html#%_sec_2.2.1)
added 64 characters in body
Source Link
lightning_missile
  • 2.8k
  • 2
  • 24
  • 42

I have implemented a helper procedure, called predmap (Note: I am not aware of (filter) before writing this exercise). It's identical to map, but the function argument is a predicate. The item will be added in the new list if the predicate is true.

I have implemented a helper procedure, called predmap. It's identical to map, but the function argument is a predicate. The item will be added in the new list if the predicate is true.

I have implemented a helper procedure, called predmap (Note: I am not aware of (filter) before writing this exercise). It's identical to map, but the function argument is a predicate. The item will be added in the new list if the predicate is true.

deleted 1 character in body
Source Link
lightning_missile
  • 2.8k
  • 2
  • 24
  • 42

In the second argument to cons, I put the if statement in the function argument directly to avoid repeating the call to predmap in the code. But it seems to look commplecatedcomplicated now.

In the second argument to cons, I put the if statement in the function argument directly to avoid repeating the call to predmap in the code. But it seems to look commplecated now.

In the second argument to cons, I put the if statement in the function argument directly to avoid repeating the call to predmap in the code. But it seems to look complicated now.

Source Link
lightning_missile
  • 2.8k
  • 2
  • 24
  • 42
Loading
lang-lisp

AltStyle によって変換されたページ (->オリジナル) /