XPATH/XSLT like access to Clojure data structures?

2015-02-28 Thread Ivan L
instar and balagan are two libs that are in this space. ive been looking for something like youre describing as well - i think something like xslt would be wondrous. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-28 Thread Jeremy Heiler
Sorry, I misread your email. -- 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 th

Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-28 Thread Michael Griffiths
Hmm, I've noticed a file named resolver-status.properties is created in ~/.m2/repository/org/clojure/clojure/1.7.0-master-SNAPSHOT with the following contents: #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Sat Feb 28 21:45:36 GMT 2015 maven-met

Re: Is Caribou Dormant ?

2015-02-28 Thread Justin Smith
I'm one of the core devs of the Caribou project. Caribou has been less actively developed, but I still use it frequently. We previously were funded to work on Caribou, but the company funding us decided to discontinue using Clojure (except for supporting some clients where Clojure code was depl

Re: :reload does not always work correctly in leiningen

2015-02-28 Thread Cecil Westerhof
2015-02-28 17:26 GMT+01:00 Sam Raker : > "does not always work correctly " in what context? > ​One time when I did the reload my forms got an empty area around them. After an exit and a new start everything was OK again. I use it since today, so I do not know if it is a gremlin or a real problem.

Re: Is this the right way to prevent repetitive code

2015-02-28 Thread Cecil Westerhof
2015-02-28 16:51 GMT+01:00 Marc Limotte : > You might wonder how to get 'i' if you remove the dotimes. Here is one > way: > > (doall > (map-indexed > (fn [i [description f]] > ...) > search-fields)) > ​Done, see other reply. -- Cecil Westerhof -- You received this message bec

Re: Is this the right way to prevent repetitive code

2015-02-28 Thread Cecil Westerhof
2015-02-28 16:43 GMT+01:00 Chris Freeman : > You can pass your functions around directly; you don't need to wrap them > in #(). That will get rid of most of the rest of the duplication you've > got. > ​That did not work in the beginning, but that probably had to do that I was first using a list i

Re: Is Caribou Dormant ?

2015-02-28 Thread Sven Richter
I am glad you like it. It is still pretty young, so like I said, just open issues if you need more. Best Regards, Sven Am Samstag, 28. Februar 2015 16:22:41 UTC+1 schrieb g vim: > > On 27/02/2015 07:26, Sven Richter wrote: > > Hi, > > > > Please have a look at: https://github.com/sveri/closp/

Re: :reload does not always work correctly in leiningen

2015-02-28 Thread James Reeves
The :reload directive re-evaluated the namespace, but does not remove any existing definitions, or reload any dependent namespaces. This may be the cause of your "strange results". The tools.namespace library contains a "refresh" function that will clea

Re: :reload does not always work correctly in leiningen

2015-02-28 Thread Sam Raker
"does not always work correctly " in what context? In the REPL, `(require '[my.ns :as mine] :reload-all)` should work. `defonce` and `defmulti` might also be causing confusion. You could also look into `clojure.tools.namespace.repl` (https://github.com/clojure/tools.namespace#reloading-code-usa

[ANN] Understanding the Persistent Vector

2015-02-28 Thread Jean Niklas L'orange
Hello fellow Clojurians, I am happy to announce that I have finished my blogpost series on the persistent vector. It consists of five parts: 1. The basic algorithms 2. Indexing

Re: Is this the right way to prevent repetitive code

2015-02-28 Thread Marc Limotte
You might wonder how to get 'i' if you remove the dotimes. Here is one way: (doall (map-indexed (fn [i [description f]] ...) search-fields)) doall is to force side-effects, assuming you need to do that. And like Chris said above, you might consider moving the anonymous fn into a

Re: Is this the right way to prevent repetitive code

2015-02-28 Thread Chris Freeman
You can pass your functions around directly; you don't need to wrap them in #(). That will get rid of most of the rest of the duplication you've got. (def search-fields [ ["Search Quotes (Case Independent)" show-search-quotes] ["Search Quotes Not (Case Independ

Re: Is Caribou Dormant ?

2015-02-28 Thread gvim
On 27/02/2015 07:26, Sven Richter wrote: Hi, Please have a look at: https://github.com/sveri/closp/ and tell me what you are missing. You might as well open feature / pull requests and I will consider adding them. Best Regards, Sven Great work, Sven. Just what I was looking for. Next - THE BO

:reload does not always work correctly in leiningen

2015-02-28 Thread Cecil Westerhof
I discovered: (require 'project.core :reload) Very handy indeed and a big time saver. But it does not always work correctly. At a certain moment I got strange results. An exit and a new 'lein repl' solved the problems. -- Cecil Westerhof -- You received this message because you are subscri

Is this the right way to prevent repetitive code

2015-02-28 Thread Cecil Westerhof
I need some things that are almost the same. I solved that in this way: (def search-fields [ ["Search Quotes (Case Independent)" #(show-search-quotes %)] ["Search Quotes Not (Case Independent)" #(show-search-quotes-not %)] ["Search Quotes Word Bounde

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-28 Thread henrik42
Thanks. But I'm looking for something that may (a) clojure.walk a clojure data structure (b) let me use clojure.match rules to say what I'm interested in (like xpath does) and (c) use zippers to 'mutate'. - Henrik -- You received this message because you are subscribed to the Google Groups "Cloj