code entry is a map entry , to-match is string for
(defn matchName [ entry to-match]
(let [match-str (.toLowerCase to-match)
str-pattern (re-pattern (str "(" match-str ")"))
m (re-matcher str-pattern (.toLowerCase (:name entry)))]
(when (re-find m)
entry)))
how t
Yes, pmap behaves as map with respect to the ordering of the elements
of the resulting sequence.
// ben
On Sat, Aug 11, 2012 at 9:29 PM, Jim - FooBar(); wrote:
> Hi all,
>
> I was wondering what assumptions does pmap take with regards to the ordering
> of the resulting seq? Can I assume it retai
On Sat, Aug 11, 2012 at 2:14 PM, Moritz Ulrich wrote:
>
> Hi, fellow logic programmers!
>
>
> Shouldn't `membero' work with sets?
>
> I notice that
>
> (run* [q] (membero :x #{:x}))
>
> returns no results while
>
> (run* [q] (membero :x (seq #{:x})))
>
> returns the (in my opinion) correct res
Hi, fellow logic programmers!
Shouldn't `membero' work with sets?
I notice that
(run* [q] (membero :x #{:x}))
returns no results while
(run* [q] (membero :x (seq #{:x})))
returns the (in my opinion) correct result: (:x).
Can someone explain this behavior to me? It seems strange.
--
M
Hi all,
I was wondering what assumptions does pmap take with regards to the
ordering of the resulting seq? Can I assume it retains the original
ordering or does it just cons whatever future returns earlier? In other
words can I do this and feel safe?
--
Using maps in clojure is very idiomatic if the structure fits to your data.
Do you experience performance problems?
Dependent on the data you are modeling you could split the master maps in
several smaller ones.
If performance gets really important you can use records instead of maps.
It would be
On Sun, Aug 5, 2012 at 10:43 PM, Olaf Delgado-Friedrichs
wrote:
> Thanks for the link! I didn't know that the Closure library contained an
> arbitrary precision type, but should have expected it.
>
> When you speak of performance, do you mean the extra cost of checking
> argument types for the ari
Could you please post the relevant code? Note that clojurescript uses
Javascript regular expression syntax and not javas
Am 11.08.2012 17:02 schrieb "Vincent" :
> dear all ,
> i am trying a search a string in a clojure map data and then want to
> return the result to be viewed in webpage
> so usin
dear all ,
i am trying a search a string in a clojure map data and then want to return
the result to be viewed in webpage
so using clojurescript .but regular expr. of clojure is not supported it
seems as error is showing when lein cljsbuild
...how to work around thru this? any example?
thanks
Visualvm is quite nice and simple to use.
On 10 Aug 2012 23:21, "Hussein B." wrote:
> Hi,
> I want to measure how much space an algorithm is taking and then trying to
> change some aspects to see how things are going to differ.
> I also want to measure how much time it takes to complete an operat
Hello,
thank you very much for your comments!
I didn't know before about the term "SPA"
(http://en.wikipedia.org/wiki/Single-page_application)
I guess a sign of being too "Conservative" (-: !
I am trying to re-implement a swing app with clojure script.
Before seeing Clojurescriptone I was only
11 matches
Mail list logo