Skip to content

Working through Friedman & Felleisen's `Little Schemer` in Clojure

License

Notifications You must be signed in to change notification settings

esciafardini/little-schemer-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The preface

  • Recursion is the act of defining an object or solving a problem in terms of itself

  • The goal of this book is to teach the reader to think recursively

  • Mental illness is recursive

  • writing programs recursively in a lisp is essentially

  • => simple pattern recognition

SCHEME LORD MAP

  • car => first
  • cdr => rest
  • eq? => =
  • null? => nil?
  • add1 => inc
  • sub1 => dec
  • lambda => fn (I think?)
  • define => def
  • pair? => list?

SCHEME == CLOJURE

  • cond => cond

  • quote => '(1 2 3) or quote

  • cons => cons

  • number? => number?

  • and => and

  • or => or

  • zero? => zero?

  • :S (concerns scheme)

  • :L (concerns LISP)

  • variables and names of primitive operations are italicized

  • keywords are boldface

SCHEME DICTIONARY

  • atom - not a list, and not a sequence
  • lat - list of atoms

About

Working through Friedman & Felleisen's `Little Schemer` in Clojure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published