peek

peek s -- displays contents of s, bypassing installed methods.
peek (s,n) -- displays contents of s to depth n, bypassing installed methods.

It applies the default output method to the object s, bypassing the installed method for objects of its class.

     i1 = t = set {1,2,3}
     
     o1 = set {1, 2, 3}
     
     o1 : Set
     
     i2 = peek t
     
     Set{1 => 1}
         2 => 1
         3 => 1
     i3 = new MutableHashTable from {a=>3, b=>44}
     
     o3 = MutableHashTable{...}
     
     o3 : MutableHashTable
     
     i4 = peek oo
     
     MutableHashTable{a => 3 }
                      b => 44

Go to main index.

Go to concepts index.