scalatutorials

Learn Scala in your browser

Interactive, bite-sized tutorials with a live editor on every page.

Free and open source. The code runs on Scastie, the Scala Center's playground. Nothing to install, no account needed.

Share on X

//Press Run to try it!
//e.g. Project Euler problem #1:
(1 until 1000).filter(x =>
  x % 3 == 0 || x % 5 == 0).sum
Run as you read
Every lesson has a live editor powered by Scastie, the Scala Center's playground.
Small steps
Forty-odd focused pages, from arithmetic to classes. Each one takes a minute or two.
Scala 3 ready
The tour targets Scala 3, with a dedicated section on what changed since Scala 2.