Hello James Yes. The (into (empty table) (comp (filter process?) (map process)) table) was exactly what I wanted for an end user to avoid to have to write, but just a (filter ... table), otherwise I could provide a wrapper like (defn myfilter [pred table] (into (empty table) (comp (filter process?) (map process)) table)), which I also wanted to avoid, but you and Alex are both right.
Thank you for taking time. With best regards Plamen On Tuesday, January 15, 2019 at 3:47:13 PM UTC+1, James Reeves wrote: > > On Tue, 15 Jan 2019 at 13:58, <plamen...@gmail.com <javascript:>> wrote: > >> So - do I miss something either in my knowledge or in the Clojure's >> documentation/implementation and is there a meaningful way to apply >> Clojure's and not mine filter/map/take/drop/sort etc. functions on a Table >> and to get a Table back, without going the monads/own functions for >> everything route or should I take it for granted that I can implement some >> custom types, but no way to get them be fully transparent to Clojure? >> > > You could write: > > (into (empty coll) xform coll) > > Assuming coll is some implementation of IPersistentCollection and where > xform is your transducer. > > So for example: > > (into (empty table) (comp (filter process?) (map process)) table) > > -- > James Reeves > booleanknot.com > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.