My solutions to the exercises from the book Functional Programming in Scala, 2nd edition.
Official GitHub repo: https://github.com/fpinscala/fpinscala
-
What is functional programming?
-
Getting started with functional programming in Scala
-
Functional data structures
-
Handling errors without exception
-
Strictness and laziness
-
Purely functional state
-
Monoids
-
Monads
-
Applicative and traversable functors
./millw <module>.runMain --mainClass <fully-qualified main class>
./.github/run.sh <chapter>
-
Open command palette:
Ctrl + Shift + P
-
Open another window:
File > New Window > Open Recent/Open Folder
-
To disable preview mode (don't replace current tab):
-
From command palette:
Preferences: Open User Settings
-
Add
"workbench.editor.enablePreview": false
tosettings.json
and save it.
-
-
To see the methods in a file:
Cmd + Shift + P
-
To search a file by name:
Cmd + P
Install a BSP connection file:
mill mill.bsp.BSP/install
Then open VSCode command palette, and select Metals: Switch build server
.