home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 018.lha / prelude / symbol.p < prev    next >
Text File  |  1986-10-19  |  449b  |  17 lines

  1. ent: [ ^ exceptionBlock value].
  2.                 (1 = i) ifTrue:  [dict removeKey: oldElement]
  3.                         ifFalse: [dict at: oldElement put: i - 1 ]
  4.  
  5. |       size
  6.                 ^ dict inject: 0 into: [:x :y | x + y]
  7.  
  8. |       occurrencesOf: anElement
  9.                 ^ dict at: anElement ifAbsent: [0]
  10.  
  11. |       first
  12.         (count <- dict first) isNil ifTrue: [^ nil].
  13.         count <- count - 1.
  14.         ^ dict currentKey
  15.  
  16. |       next
  17.         [count notNil]