8 Indexable Structures

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

8.1 What’s an “indexable” structure?

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

8.2 Accessing and updating values with ‘Ixed’

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

The Ixed Class

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

Accessing and setting values with ix

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

Indexed Structures

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

Indexing monomorphic types

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

Indexing stranger structures

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

8.3 Inserting & Deleting with ‘At’

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

Map-like structures

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

Manipulating Sets

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

Exercises – Indexable Structures

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

8.4 Custom Indexed Data Structures

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

Custom Ixed: Cyclical indexing

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

Custom At: Address indexing

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 Indexed Structures

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

8.5 Handling missing values

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

Checking whether updates succeed

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

Fallbacks with ‘failing’

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

Default elements

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

Checking fold success/failure

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

Exercises – Missing Values

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