This chapter provides a quick introduction to Racket as background for the rest of the guide. Readers with some Racket experience can safely skip to Built-In Datatypes.
2.1Simple Values
2.2Simple Definitions and Expressions
2.2.1Definitions
2.2.2An Aside on Indenting Code
2.2.3Identifiers
2.2.4Function Calls (Procedure Applications)
2.2.5Conditionals with if, and, or, and cond
2.2.6Function Calls, Again
2.2.7Anonymous Functions with lambda
2.2.8Local Binding with define, let, and let*
2.3Lists, Iteration, and Recursion
2.3.1Predefined List Loops
2.3.2List Iteration from Scratch
2.3.3Tail Recursion
2.3.4Recursion versus Iteration
2.4Pairs, Lists, and Racket Syntax
2.4.1Quoting Pairs and Symbols with quote
2.4.2Abbreviating quote with '
2.4.3Lists and Racket Syntax
AltStyle γ«γγ£γ¦ε€ζγγγγγΌγΈ (->γͺγͺγΈγγ«) / γ’γγ¬γΉ: γ’γΌγ: γγγ©γ«γ ι³ε£°γγ©γ¦γΆ γ«γδ»γ ι θ²εθ»’ ζεζ‘ε€§ γ’γγ€γ«