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
Exploring Data Science
Loading Data
Initial Investigations
Summarizing Data
Loading Data
Loading Data Using a Source
adt
Algebraic Data Types To Call Our Own
Build Your Own Turtle
Algebraic Data Types
Introduction
turtles
Turtle Algebra and Algebraic Data Types
Exercises
Controlling the Turtle
Branching Structures
sequences
Paths
Shapes, Sequences, and Stars
Working with Lists
My God, It's Full of Stars!
Transforming Sequences
links.md
declarations
Extended Exercise: Color Palettes
Declarations
Method Declarations
Take Home Points
Value Declarations
animation
Reactors
Animation and Fireworks
Easing Functions
collections
Drawing Paths
Collections {#collections}
Transforming Sequences
Take Home Points
Creating Sequences
quickreference
Syntax Quick Reference {#syntax-quick-reference}
generative
For Comprehensions
Combining Random Values
Composition of Generative Art
Combining Random Values
Exploring Random
Randomness without Effect
Exercises
Generative Art
summary
Summary
fp
Functions as Values
(Functional) Programming
Recursive Algorithms
Take Home Points
data
Creating and Working With Data
Case Classes
Data
Solutions to Exercises {#solutions}
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
Exploring Data Science
Loading Data
Initial Investigations
Summarizing Data
Loading Data
Loading Data Using a Source
adt
Algebraic Data Types To Call Our Own
Build Your Own Turtle
Algebraic Data Types
Introduction
turtles
Turtle Algebra and Algebraic Data Types
Exercises
Controlling the Turtle
Branching Structures
sequences
Paths
Shapes, Sequences, and Stars
Working with Lists
My God, It's Full of Stars!
Transforming Sequences
links.md
declarations
Extended Exercise: Color Palettes
Declarations
Method Declarations
Take Home Points
Value Declarations
animation
Reactors
Animation and Fireworks
Easing Functions
collections
Drawing Paths
Collections {#collections}
Transforming Sequences
Take Home Points
Creating Sequences
quickreference
Syntax Quick Reference {#syntax-quick-reference}
generative
For Comprehensions
Combining Random Values
Composition of Generative Art
Combining Random Values
Exploring Random
Randomness without Effect
Exercises
Generative Art
summary
Summary
fp
Functions as Values
(Functional) Programming
Recursive Algorithms
Take Home Points
data
Creating and Working With Data
Case Classes
Data
Solutions to Exercises {#solutions}
Solutions to Exercises {#solutions}
<div class="solutions"> </div>
←Data