Hi,
I am trying to write a function to return a boolean as to whether
parenthesis are balanced or not?
(defn bal-parens? [parens]
(let [replaced (clojure.string/replace parens "()" "")
checked (re-seq #"\(\)" replaced)]
(println checked)
(if-not (nil? checked) (bal-parens
Hi,
Is there a higher-order function(s) that count occurrences of characters in
either a string or a collection?
Thanks
Paul
--
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 p
Hi,
I have a main function:
(defn -main [& args]
(let [{:keys [graph filepath title]} args]
(cond
(= graph "response") (graph-response filepath title)
(= graph "requests") (graph-request filepath)
(= graph "throughput") (graph-throughput filepath
Which I can invoke wit
Hi,
I have an unsorted map:
(def my-map
{1405961887 20,
1405960895 20,
1405961919 20,
1405960927 20,
1405960959 21,
1405960991 20,
1405961023 20,
1405961055 18,
1405961087 23,
1405961119 17,
1405961151 23,
1405961183 19,
1405961215 20}
I'd like to be able to sort the map b
Hi,
Is there a better way to reload dependencies in Cider than by shutting down
the nrepl and running 'lein deps'?
Many Thanks
Aidy
--
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
Hi,
I have a list of epoch times which map to HTTP requests.
'(1405060202611
1405060201157
1405060201361
1405060201261
1405060200391
1405060201458
1405060201705
1405060201058
1405060205062
1405060201558
1405060201761
)
I am trying to find out how many HTTP requests I have in a specified ti
Hi,
I am developing a primitive web load test tool using a HTTP client and STM.
I wondered if there was a Clojure library I could use that would give me
individual HTTP response times?
Many Thanks
Paul
--
You received this message because you are subscribed to the Google
Groups "Clojure" g
Hi,
I have a Clojure file that contains two maps.
{:a 1 :b 2}
{:c 3 :d 4}
I would like to read both maps as Clojure data structures, but if I:
(read-string (slurp maps.clj))
Only the first map is returned.
I would like to read the file and split or partition the maps and hold onto
them a