Visualization Tools User's Guide


Examples: Displaying Collections

  1. 1. In a workspace, type
    (OrderedCollection with: Transcript 
         with:5 with: #X) snoop
    
    .
  2. Select and evaluate the text.
    Ordered Collection window
  3. Replace OrderedCollection with Set, and select and evaluate the text again.
    Set window
  4. Type and evaluate
    |d| 
    d := Dictionary new. 
    d at: #a put: 'a'.
    d at:#b put: Transcript. 
    d snoop.
    

    Dictionary window

    If you try to expand a line containing an object that has no children, a marker appears by its name. (Depending on which platform you are using, the marker might be an omega, a left angle bracket, or some other symbol.)

  5. Double-click the a line to try to expand the string 'a'.
    Dictionary window


[ Top of Page | Previous Page | Next Page | Table of Contents ]