[Gd-chatter] r11600 - trunk/sandbox/cgay
cgay at gwydiondylan.org
cgay at gwydiondylan.org
Tue Jan 1 13:40:35 CET 2008
Author: cgay
Date: Tue Jan 1 13:40:35 2008
New Revision: 11600
Modified:
trunk/sandbox/cgay/dylan-notes.txt
Log:
job: minor
added note re key-exists?
Modified: trunk/sandbox/cgay/dylan-notes.txt
==============================================================================
--- trunk/sandbox/cgay/dylan-notes.txt (original)
+++ trunk/sandbox/cgay/dylan-notes.txt Tue Jan 1 13:40:35 2008
@@ -45,6 +45,21 @@
Has number-to-string but no string-to-number.
+ Add key-exists? or has-key? g.f.?
+ There is key-exists? in gwydion/common/collection-extensions/collection-utils.dylan
+ but it's broken. A fixed version would be::
+
+ define method key-exists?
+ (collection :: <collection>, key)
+ => (key-exists? :: <boolean>, value :: <object>);
+ let result = element(collection, key, default: $not-found);
+ if (result == $not-found)
+ values(#f, #f);
+ else
+ values(#t, result);
+ end if;
+ end method key-exists?;
+
+ but for some reason I get "Authorization denied" when I try to commit it.
+ What's the reasoning behind the 'skip' parameter to some sequence functions,
like 'position'? It seems like it would be less efficient to use than
More information about the chatter
mailing list