[top][index]
search for:

peek -- examine contents of an object

peek s -- displays contents of s to depth 1, bypassing installed methods.

i1 : t = set {1,2,3}

o1 = Set {1, 2, 3}

o1 : Set
i2 : peek t

o2 = Set{1 => 1}
         2 => 1
         3 => 1
i3 : new MutableHashTable from {a=>3, b=>44}

o3 = MutableHashTable{...}

o3 : MutableHashTable
i4 : peek oo

o4 = MutableHashTable{a => 3 }
                      b => 44

See also:

  • peek2 -- examine contents of an object
  • Class of returned value: Net -- the class of all nets and stringsCode:

         -- ../../../Macaulay2/m2/peek.m2:66
         peek = s -> peek2(s,1)

    [top][index]
    search for: