[elephant-devel] Public API for slot btrees/cursors?

Ben Hyde bhyde at pobox.com
Wed Aug 16 15:29:14 UTC 2006


So... why is the public interface to the slot indexes limited to the  
get-instance-by-* methods?

I find I'm writing routines like this:

  (defun map-over-unique-values-of-slot (function class-name slot)
   (ele::with-inverted-cursor (cur (find-class class-name) slot)
     (loop
	for count from 0
	do
	(multiple-value-bind (ok? value) (cursor-next-nodup cur)
	  (unless ok? (return))
	  (funcall function value)))))

But I note that with-inverted-cursor is private.




More information about the elephant-devel mailing list