On Mon, Jul 20, 2009 at 12:33, kyle smith<the1physic...@gmail.com> wrote:
>
>> At the moment "root" works like an "unzip". What you want it is some
>> kind of "up-till-root" shortcut.
> Yep. For now, I've added root-loc to my local copy of clojure,
> although I second the name unzip.

Hmm, though this is actually precisely backwards compared to the
stated in Gérard Huet's paper, isn't it? He visualized it working like
a zipper, that is opening the tree (unzipping) as one navigates, and
then stitching it back together (zipping) on the way back to root.

Still, since the data structure is called "Zipper", its understandable
to think of its primary action (navigating) as zipping, so returning
to the root must then, logically, be "unzipping", which is the
opposite of what I argued in the previous paragraph. ;-)

And people wonder why it's hard to name things well!

// ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to