# frames -- get the frames associated to a closure

## Synopsis

• Usage:
frames f
• Inputs:
• f, () or , , or an instance of the type Pseudocode
• Outputs:
• a list of mutable lists, the frames attached to the closure f or, if f is (), then the frames attached to the current lexical scope

## Description

This function is occasionally useful as a debugging tool.
 i1 : f = (x,y,z) -> t -> t o1 = f o1 : FunctionClosure i2 : g = f(111,222,"hi there") o2 = g o2 : FunctionClosure i3 : frames g o3 = {MutableList{...3...}, MutableList{}} o3 : List i4 : peek first oo o4 = MutableList{111, 222, hi there}

## Ways to use frames :

• "frames(Function)"
• "frames(Pseudocode)"
• "frames(Sequence)"
• "frames(Symbol)"

## For the programmer

The object frames is .