Patterns

Introduction

Finding Expressions That Match a Pattern

Naming Pieces of Patterns

Specifying Types of Expression in Patterns

Putting Constraints on Patterns

Patterns Involving Alternatives

Pattern Sequences

Flat and Orderless Functions

Functions with Variable Numbers of Arguments

Optional and Default Arguments

Setting Up Functions with Optional Arguments

Repeated Patterns

Verbatim Patterns

Patterns for Some Common Types of Expression

An Example: Defining Your Own Integration Function