SkillAgentSearch skills...

Handsonscala

Discussion and and code examples for the book Hands-on Scala Programming

Install / Use

/learn @handsonscala/Handsonscala
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Hands-on Scala Programming

This repository is the online hub for the book Hands-on Scala Programming:

Executable Code Examples

The executable code examples from Hands-on Scala are freely available online, and open source under an MIT license. These examples are meant to be useful to anyone who is interested in learning Scala, whether or not they are working through Hands-on Scala Programming, though following along with the book will give you the best experience and help you get the most out of them.

Each example is:

  • Self-contained: to be run either using the Scala CLI scripts or Mill build tool, with no other setup

  • Tested: with simple test suites provided and instructions on how to run each example in that folder's readme.md file

  • Executable: you can download the folder and run the example yourself to see it in action

Many of the examples are related, with only small code changes between them to illustrate a new feature or technique. The readme.md file of such downstream examples will show a diff from the upstream example that it was based upon, so you can focus your attention on the important code changes that are happening, with a link back up to the upstream example.

The executable code examples below are organized by each part and each chapter of the book.

Part I Introduction to Scala

Chapter 1: Hands-on Scala

Chapter 2: Setting Up

Chapter 3: Basic Scala

Chapter 4: Scala Collections

Chapter 5: Notable Scala Features

Part II Local Development

Chapter 6: Implementing Algorithms in Scala

  • 6.1 - MergeSort: Simple merge-sort implemention, hard-coded to only work on Array[Int]
  • 6.2 - GenericMergeSort: Generic merge sort implemention, that can sort any IndexedSeq[T] with an Ordering
  • 6.3 - Trie: A simple mutable Trie implemention
  • [6.4 - Search](https://github.com/handsonscala/handsonsc

Related Skills

View on GitHub
GitHub Stars706
CategoryDevelopment
Updated1mo ago
Forks170

Languages

Scala

Security Score

80/100

Audited on Feb 27, 2026

No findings