Tags
Language
Tags
July 2025
Su Mo Tu We Th Fr Sa
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
    Attention❗ To save your time, in order to download anything on this site, you must be registered 👉 HERE. If you do not have a registration yet, it is better to do it right away. ✌

    ( • )( • ) ( ͡⚆ ͜ʖ ͡⚆ ) (‿ˠ‿)
    SpicyMags.xyz

    Optics by Example: Functional lenses in Haskell

    Posted By: IrGens
    Optics by Example: Functional lenses in Haskell

    Optics by Example: Functional lenses in Haskell by Chris Penner
    English | April 22, 2020 | ISBN: n/a | True EPUB | pages | 8.7 MB

    Optics By Example is a one-stop comprehensive guide to mastering optics in functional programming languages. It covers everything you need to know to go from complete beginner to advanced. Each topic is accompanied by copious examples and exercises!

    See the Sample for a complete list of chapters, but here are some highlights:

    • Complete introductions to Lenses, Folds, Traversals, Prisms and Isos
    • Learn the magic of Indexed optics
    • Composing Optics
    • Lenses & Records
    • Fixing "The Record Problem"
    • Application design techniques using Classy optics
    • Breakdowns of laws and limitations for each optic type
    • Virtual lenses
    • Validation lenses
    • A guide to fully polymorphic optics
    • A guide to "operator-style"
    • Learn to query, filter, and aggregate data with surgical precision
    • Learn how to use higher-order optics effectively
    • Learn to write custom versions of all optics types for your own applications
    • Manipulate data types with a clean and consistent interface
    • Learn the monadic DSLs for using lenses in real monad stacks

    WHY OPTICS?

    Optics have become a wonderful and powerful new way of working with immutable data structures. They're almost a necessity at this point; and the benefits they bring in terms of re-usability, simplification of code maintenance & refactoring, and expressivity are immense! However, learning to use optics can be tricky or even intimidating at first, it's not always clear how to build up a large complicated mutation or query from the building blocks of optics. Optics by example is here to help!

    This book is great as a first guide to optics, as a reference guide for discovering and mastering the optics you need for day-to-day problems, and as a springboard into new ideas and tools which you may not have even heard of.