I know that one can obtain the length of a ::list via `! wc -l' but is there any "first-class" way to do this? For instance, suppose one wants to walk a set of lists and determine the length of each -- then the `! wc -l' approach won't work, since it will only tally the aggregate length of all the lists. As such, would it be reasonable to add a ::listlen dcmd that was identical to ::list except that it would output the length of a given list?
[ If you're curious, I needed such a facility in order to quickly find the head element of a very long singly-linked list of uniform type. With ::listlen (which I hacked in), I was able to ::walk over all of the elements of that type, run ::listlen on each, and sort the results to find the head of the list -- something that would've otherwise been quite painful. ] -- meem