←
Creative Scala: Form and Function
→
Creative Scala: Form and Function
Foreword to the First Edition
Foreword to the Second Edition
Getting Started
Background
Our Recommended Setup
GitHub
IntelliJ
Setup
Part One: Introduction
Expressions, Values, and Types
Starting to Program
Expressions and Values
Types
Exercises
Conclusions
Expanding Expressions
Literal Expressions
Values are Objects
Types
Exercises
Expressive Expressions
Images
Layout
Color
Creating Colors
Exercises
Conclusions
Writing Larger Programs
Names
Abstraction
Working Without Worksheets
Packages and Imports
Using The Build System
Conclusions
The Substitution Model of Evaluation
Substitution
Order of Evaluation
Local Reasoning
Conclusions
Methods without Madness
Methods
Method Syntax
Method Semantics
Writing Methods
Conclusions
Structural Recursion over the Natural Numbers
A Line of Boxes
The Natural Numbers
Match Expressions
Reasoning about Recursion
Conclusions
Fractals
Fun with Fractals
Nested Methods
Auxiliary Parameters
Exercises
Conclusions
Points, Paths, and Polygons
Polar Coordinates
Paths
Going Further
Conclusions
Functions and Flowers
Functions as Abstractions
Fun with Functions
Parametric Curves
Flowers and Other Curves
Conclusions
Composition and Cycles
Function Composition
Fun with Composition
Interpolation
Epicycles
Bringing it Together
Conclusions
Part One: Conclusions
Part Two: Introduction
Loading Data
Loading Data Using a Source
data
Case Classes
Data
Creating and Working With Data
quickreference
Syntax Quick Reference {#syntax-quick-reference}
summary
Summary
collections
Collections {#collections}
Take Home Points
Drawing Paths
Creating Sequences
Transforming Sequences
animation
Easing Functions
Animation and Fireworks
Reactors
declarations
Method Declarations
Extended Exercise: Color Palettes
Declarations
Value Declarations
Take Home Points
links.md
sequences
My God, It's Full of Stars!
Shapes, Sequences, and Stars
Working with Lists
Transforming Sequences
Paths
adt
Algebraic Data Types To Call Our Own
Algebraic Data Types
Build Your Own Turtle
generative
Randomness without Effect
Combining Random Values
Exercises
Generative Art
For Comprehensions
Exploring Random
Composition of Generative Art
Combining Random Values
Introduction
fp
Functions as Values
(Functional) Programming
Take Home Points
Recursive Algorithms
Solutions to Exercises {#solutions}
turtles
Branching Structures
Exercises
Controlling the Turtle
Turtle Algebra and Algebraic Data Types
Loading Data Using a Source
scala.io.Source
Source.getLines().toList
←Loading Data
Case Classes→