Even so, what do you do when you're using someone else's code as a library?
On Mon, May 13, 2013 at 10:42 AM, Meikel Brandmeyer (kotarak) <m...@kotka.de>wrote: > Hi, > > Am Montag, 13. Mai 2013 16:16:36 UTC+2 schrieb Mark: >> >> That's a fair point, but do you always know that what you've gotten back >> is a sequence or a data structure, if you aren't looking directly at the >> code that you're calling? >> > > Most of my code are either sequence-y things (mostly transformations). > Then I call seq on the argument and work with the result together with a > when-let. (maybe transforming things back into the original type of thing > afterwards) Or it's about data structures. Then - most of the time - you > have to know anyway what you are working on, because the data structures > have different usage scenarios. > > Typical case: > > (into (empty x) (map some-fn (take some-number (filter some-pred x)))) > > That said: my code is usually not representative. > > Meikel > > -- > -- > 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 a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/WEoAo6BcCV0/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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/groups/opt_out.