SkillAgentSearch skills...

CodeFromTheReasonedSchemer2ndEd

Code from Chapter 10 & Appendix A, implementation, and Chapters 7 & 8, arithmetic

Install / Use

/learn @TheReasonedSchemer2ndEd/CodeFromTheReasonedSchemer2ndEd
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Code from The Reasoned Schemer, Second Edition

Code from The Reasoned Schemer, Second Edition, by Daniel P. Friedman, William E. Byrd, Oleg Kiselyov and Jason Hemann, 2018 MIT Press.

https://mitpress.mit.edu/books/reasoned-schemer-second-edition

The code in this repository is covered under the MIT License (see the LICENSE file). The contents of The Reasoned Schemer, Second Edition is © 2018 Massachusetts Institute of Technology, all rights reserved.

trs2-impl.scm includes the implementation of the language used in the book, from Chapter 10 & Appendix A

trs2-arith.scm includes the arithmetic relations from Chapters 7 & 8 (please load trs2-impl.scm before loading trs2-arith.scm)

Example of loading and testing the code in Scheme, assuming you start Scheme in the same directory as the code

> (load "trs2-impl.scm")
> (run* q (== 'pasta q))
(pasta)
> (load "trs2-arith.scm")
> (run* q (*o (build-num 3) (build-num 4) q))
((0 0 1 1))
>

You can find more about the language of the book at http://minikanren.org/

View on GitHub
GitHub Stars140
CategoryDevelopment
Updated2mo ago
Forks24

Languages

Scheme

Security Score

95/100

Audited on Jan 19, 2026

No findings