How to Design Programs Languages

1`` | Beginning Student
2`` | Beginning Student with List Abbreviations
3`` | Intermediate Student
4`` | Intermediate Student with Lambda
5`` | Advanced Student
| Index

On this page:

shared

Version: 4.0.2
contents index
← prev up next →

#### 5.8`` shared

(shared ([id expr] ...) expr)

Like letrec, but when an expr next to an id is a cons, list, vector, quasiquoted expression, or make-structid from a define-struct, the expr can refer directly to any id, not just ids defined earlier. Thus, shared can be used to create cyclic data structures.

contents index
← prev up next →