▼ |  | Unstable

1 | Guidelines for developing unstable libraries
2 | Bytes
3 | Contracts
4 | Exceptions
5 | Lists
6 | Net
7 | Path
8 | Source Locations
9 | Strings
10 | Structs
11 | Syntax
12 | Anaphoric Contracts
13 | Finding Mutated Variables
14 | Find
15 | Interface-Oriented Programming for Classes
16 | Sequences
17 | Hash Tables
18 | Match
19 | Skip Lists
20 | Interval Maps
21 | GUI libraries

On this page:

find-mutated-vars
is-var-mutated?

Version: 4.2.4
top ← prev up next →

### 13`` Finding Mutated Variables

Sam Tobin-Hochstadt <samth@ccs.neu.edu>

( require unstable/mutated-vars )

This library is unstable; compatibility will not be maintained. See Unstable for more information.

( find-mutated-vars stx) → void?
stx : syntax?

Traverses stx, which should be module-level-form in the sense of the grammar for fully-expanded forms, and records all of the variables that are mutated.

( is-var-mutated? id) → boolean?
id : identifier?

Produces #t if id is mutated by an expression previously passed to find-mutated-vars, otherwise produces #f.

Examples:
> ( find-mutated-vars #'( begin ( set! var 'foo) 'bar))
> ( is-var-mutated? #'var)
#t
> ( is-var-mutated? #'other-var)
#f

top ← prev up next →