On Sat, Feb 13, 2010 at 2:46 PM, Brent Millare <brent.mill...@gmail.com>wrote:

> I'm interested in your thoughts, criticisms and improvements. I feel
> like this seemed like a place for monads given all the packaging,
> function passing, partial functions, and threading but trying to
> understand monads makes my head turn to mush. For some reason I find
> macro writing easier. I feel the code could be potentially more
> general and make writing classifier functions for find-seq and select-
> seq easier. Maybe there's a library that does this already? How do you
> guys normally approach manipulating such data structures?
>
> Best,
> Brent


assoc-in, update-in are useful:

(update-in x [:a] (partial map #(assoc % :B 30)))

They don't handle filtering, but perhaps a more idiomatic design would be:

(edit-in x [:a filter-fn-1 filter-fn-2] fn)

David

-- 
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

Reply via email to