Misleading doc string
Brian Rice
water at tunes.org
Fri Nov 25 17:35:57 PST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That's an interesting point. I wrote it thinking "keyed" meant
"stored", but I see what you mean.
How about:
"Answers whether the Dictionary refers to this object (or an
equivalent one) with one of its keys."?
On Nov 25, 2005, at 5:18 PM, Todd Fleming wrote:
> dictionary.slate has the following:
>
> d@(Dictionary traits) includes: obj
> "Returns whether the object is equal to some keyed value."
> [
> (d detect: [| :each | d equalsBlock applyWith: obj with: each])
> isNotNil
> ].
>
> "keyed" implies to me that this function is looking for the key,
> but it isn't. Example:
>
> Slate 36> addSlot: #x valued: Dictionary new.
> Slate 37> x add: 1 -> 2.
> Slate 38> x includes: 1.
> False
> Slate 39> x includes: 2.
> True
>
> Todd
- --
- -Brian
http://tunes.org/~water/brice.vcf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFDh7wDPVkAvLW1zf4RAjhXAJ4morKR5BKv3+7LgmVS9GMXUKUNiACgpy8O
DS1u+qs7WWFRLfpdgM9RV1M=
=RpvG
-----END PGP SIGNATURE-----
More information about the Slate
mailing list