On Mon, Mar 23, 2009 at 7:04 AM, Konrad Hinsen <konrad.hin...@laposte.net> wrote: > > On Mar 23, 2009, at 12:15, Mark Volkmann wrote: > >>> Look at clojure.contrib.generic.functor/fmap. It does what you need >>> for maps, for all the other Clojure collections (where it works like >>> map except that its return value is a collection of the same type as >>> the input value), and you can implement it for any type you define >>> yourself, e.g. a tree structure. >> >> This has methods for IPersistentVector, IPersistentSet, IPersistentMap >> and ISeq. Why isn't there a method for IPersistentList? > > Oversight. I'll add it! > > That leaves the question whether there is still any need for the > clojure.lang.ISeq implementation. At the moment it is used for lists, > but that is not particularly consistent. I guess I will remove it.
Maybe you should keep it to support custom kinds of sequences that implement ISeq, but not one of the other interfaces like IPersistentList. -- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---