Ch6 Discussion 05 WIP

Practice with:

  • map
  • filter
  • foldl
  • scanl

Be aware of their friends, foldl1 and scanl1.

  1. Make a list of the first 200 prime numbers.
  2. Which of the first 200 prime numbers leave a remainder of 3 when divided by 4?

Extra

A lot of times you want foldr. We are not going to worry about it. See the advanced notes.

Last modified October 9, 2023: Chapter six reworked, added notes. (14cd5ab)