Wouldn't it be better if at* was: : at* ( key assoc -- key/value ? ) ... ;
If the key exists then the stack is "value t" otherwise the stack is "key f". That way you could code something like: key at* [ <do something with the key> ] unless ... ; Right now it returns "f f", the redundant f's aren't that useful and you have to code: key dup at [ <do something with the value> ] [ <do something with the key> ] if ... ; Usually I'm building the object if the key doesn't exist so it would nice if the code was: key at* [ <new-object> ] unless ; Or am I completely missing the idom? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
