Repository navigation
Add apply, let and Stanford further reading to the FP chapter - #41
Conversation
Finishes the Stanford follow-ups held back from mcs#40 to keep that PR under the size cap. Every item is new or link-only: CS 107's course materials are CC BY-NC-SA, so nothing from them is copied here. - spread exercise and solution: introduces apply, replacing the draft's CS 107-adapted average - let definition and the quadratic-roots example - Scheme-to-Racket remark and further-reading remark linking CS 107 lectures 19-23, CS 242 notes and CS 99 - bib: generalize the CS 107 video entry, add CS 99 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9rJjY4bCnfxuBmX2Ch
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The Claude review on mcs#41 found that CS 99 was first offered in Spring 2025, so the key and a new year field now say 2025. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9rJjY4bCnfxuBmX2Ch
|
Claude finished review — View run The entry is now well-formed BibTeX, consistent with its siblings (key, year field, I reviewed the full range since the last round ( Review: PR #41 — Add
|
2026-10-29 21:19 UTC |
|
Merged at c10639d under Ezra's merge-when-confident grant. The check script reported it fully clean: CI was green, there were no review threads, and the Claude review was clean on this head. The cross-model review was waived because no qualifying reviewer could run. I probed it only after merging, which is the wrong order, and I'm noting that here. The OpenCode Go models all returned Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
Finishes the Stanford functional programming follow-ups held back from #40 to keep that PR under the size cap.
Why
Ezra asked for Stanford's old CS 107 (Scheme), CS 242 and CS 99 materials to be found and adapted. CS 107's course materials are CC BY-NC-SA, so this MIT repo only links to them: every item here is new or link-only. Adaptations under the same license live in the private grading repo.
Changes
_spread_exr.qmd/_spread_sol.qmd(in Functions as values): introducesapplywith a newspreadexercise, replacing the draft's CS 107-adaptedaverage._let_def.qmdand_quadratic-roots_exm.qmd:letas shorthand for applying alambda, and an example that names a value used twice. Section renamed to "Anonymous functions and local names" (id unchanged)._scheme-racket_rem.qmd: what changes when reading CS 107's Scheme in Racket, with a link to CS 107 Lecture 19._further-reading_rem.qmd: links CS 107's course page and lectures 19 to 23, Will Crichton's CS 242 notes, and CS 99 (Lean 4).references.bib:cain2008cs107videosnow covers lectures 19 to 23 and points at the SEE course page; addsaniva2025cs99(CS 99 was first offered in Spring 2025).inst/WORDLIST: Kawa, OCaml.Checks
(apply max (list 3 9 2))is 9,(spread (list 4 -1 7 2))is 8,(apply + (list 2 7 6))is 15, theletexample is 9, and(roots 1 -3 2)is'(2 1).check-rendered-page.pyreports it clean, and every new div id resolves.car/cdrwording (Racket accepts both), semantic line breaks, "still a pure function", and the unneeded "Lean" wordlist entry. Kept as they are: the multi-part exercise, which matches the chapter's existingtwiceexercise, and the Scheme remark's place at the chapter end, since moving it earlier would make it refer forward tocond. The CS 99 year, missing at first, came from the CI review and is now 2025.🤖 Generated with Claude Code
https://claude.ai/code/session_019xfc9rJjY4bCnfxuBmX2Ch