Hi!

I have read the readme and I don't found a big evidence of something wrong
so, nice work!
Furthermore, do you know about https://github.com/funcool/cats ? It has a
lens and traversable implementation for clj/cljs. You can read the related
documentation here: http://funcool.github.io/cats/latest/#lens .

You can found that lenses, using cats approach, are working just like
transducers (function composition), you do not need any special function
for combine lenses, just use comp. One of the readme examples (from your
repository) that combines two lenses, in cats can be written in this way:

(require '[cats.labs.lens :as l])
(def xy-lens (comp (l/key :x) (l/key :y))
;; Or just use (l/in [:x :y])

(l/focus xy-lens {:x {:y 1}})
;; => 1
(l/over xy-lens inc {:x {:y 1}})
;; => {:x {:y 2}}

Happy new year!
Andrey

On Fri, Jan 1, 2016 at 2:54 PM, William la Forge <[email protected]>
wrote:

> I've been looking at lenses and while it looks pretty simple and very
> useful, I had a hard time getting it. So I came up with my own take on
> lenses. https://github.com/laforge49/dewdrop#readme
>
> So perhaps I still do not understand lenses and what I've done is wrong.
> Or perhaps having been through the exercise I'm now getting it and what
> I've done is no simpler than what everyone else has done. Or perhaps I've
> just described things with fewer technical terms.
>
> So I'd appreciate it if you would review this very short document and tell
> me what I don't understand. Or that I've actually done something worthwhile
> with lenses???
>
> Thanks!
> Bill
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrey Antukh - Андрей Антух - <[email protected]>
http://www.niwi.nz
https://github.com/niwinz

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to