Chapter 12: Generics

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

The Problem Generics Solve

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

Your First Generic Function

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

Constraints

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

The comparable Constraint

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

Generic Types

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

When to Use Generics

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

Generics vs Ruby Duck Typing

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

Try It Yourself

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

Chapter Exercises

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.

Summary

This content is not available in the sample book. The book can be purchased on Leanpub at https://leanpub.com/rb2go.