# peek -- examine contents of an object

## Synopsis

• Usage:
peek s
• Inputs:
• s
• Outputs:
• a net or string that displays the contents of s to depth 1, bypassing installed methods for displaying the object

## Description

This function is used during debugging Macaulay2 programs to examine the internal structure of objects.
 i1 : set {1,2,3} o1 = set {1, 2, 3} o1 : Set i2 : peek oo o2 = Set{1 => 1} 2 => 1 3 => 1 i3 : new MutableHashTable from {a=>3, b=>44} o3 = MutableHashTable{...2...} o3 : MutableHashTable i4 : peek oo o4 = MutableHashTable{a => 3 } b => 44