[ENH] RBRelatedPatches [sm]

Avi Bryant avi at beta4.com
Wed Sep 17 02:17:19 UTC 2003


On Tue, 16 Sep 2003, Ned Konz wrote:

> and (for Dictionaries)
>
> at: #key ifAbsent: [ ] ifPresentDo: [ :v | ]

Yeah, I've wanted this one more than once.  Currently I resort to:

val := dict at: #key ifAbsent: [].
val ifNil: [...] ifNotNil: [...].

Which I've never been very fond of.



More information about the Squeak-dev mailing list