Get the latest tech news

Monocle: Optics Library for Scala


Access and transform immutable data

Monocle is a Scala library which offers a simple yet powerful API to access and transform immutable data. You also need this compiler option if you want to use macro annotations - only available for Scala * 2.13: The design is informed by many other projects, in particular Haskell Lens.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of monocle

monocle

Photo of Scala

Scala

Photo of Optics Library

Optics Library

Related news:

News photo

Mill: A fast JVM build tool for Java and Scala

News photo

The One-Eyed Man Is King: How did the monocle become a symbol of wealth? (2012)