Hi,

On 23 Okt., 08:50, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> This leads me to  a more down-to-earth question: what is the right way
> to use clojure/zip in a program? First I tried
>
>     (use 'clojure.zip)

I normally use an alias: (require '[clojure.zip :as zip])

user=> (-> (zip/vector-zip [[1 2] 3 [[4 5] 7 8]])
  zip/down
  zip/right
  zip/right
  zip/down
  zip/down
  zip/right
  (zip/edit inc)
  zip/root)
[[1 2] 3 [[4 6] 7 8]]

I prefer using the zip prefix than having conflicts...

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

Reply via email to