9 Prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

9.1 Introduction to Prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

How do Prisms fit into the hierarchy?

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Simple Pattern-Matching Prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Checking pattern matches with prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Generating prisms with makePrisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Embedding values with prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Other types of patterns

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Exercises – Prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

9.2 Writing Custom Prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Rebuilding _Just and _Nothing

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Matching String Prefixes

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Cracking the coding interview: Prisms style!

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Exercises – Custom Prisms

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

9.3 Laws

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Law One: Review-Preview

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Law Two: Prism Complement

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Law Three: Pass-through Reversion

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Summary

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Exercises – Prism Laws

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

9.4 Case Study: Simple Server

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Path prefix matching

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Altering sub-sets of functions

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.

Matching on HTTP Verb

This content is not available in the sample book. The book can be purchased on Leanpub at http://leanpub.com/optics-by-example.