► |  | The Racket Reference

1 | Language Model
2 | Notation for Documentation
3 | Syntactic Forms
4 | Datatypes
5 | Structures
6 | Classes and Objects
7 | Units
8 | Contracts
9 | Pattern Matching
10 | Control Flow
11 | Concurrency and Parallelism
12 | Macros
13 | Input and Output
14 | Reflection and Security
15 | Operating System
16 | Memory Management
17 | Unsafe Operations
18 | Running Racket
| Bibliography
| Index

► | 4 | Datatypes

4.1 | Equality
4.2 | Booleans
4.3 | Numbers
4.4 | Strings
4.5 | Byte Strings
4.6 | Characters
4.7 | Symbols
4.8 | Regular Expressions
4.9 | Keywords
4.10 | Pairs and Lists
4.11 | Mutable Pairs and Lists
4.12 | Vectors
4.13 | Boxes
4.14 | Hash Tables
4.15 | Sequences and Streams
4.16 | Dictionaries
4.17 | Sets
4.18 | Procedures
4.19 | Void
4.20 | Undefined

▼ | 4.15 | Sequences and Streams

4.15.1 | Sequences
4.15.2 | Streams
4.15.3 | Generators

top ← prev up next →

#### 4.15`` Sequences and Streams

Sequences and streams abstract over iteration of elements in a collection. Sequences allow iteration with for macros or with sequence operations such as sequence-map. Streams are functional sequences that can be used either in a generic way or a stream-specific way. Generators are closely related stateful objects that can be converted to a sequence and vice-versa.

4.15.1 Sequences
4.15.1.1 Sequence Predicate and Constructors
4.15.1.2 Sequence Conversion
4.15.1.3 Additional Sequence Operations
4.15.1.3.1 Additional Sequence Constructors
4.15.2 Streams
4.15.3 Generators

top ← prev up next →