How to use functions from clojure.contrib?

2014-07-09 Thread Pierre Masci
Hi, I am new to Clojure (about a week) so I might be missing something. I want to use the (positions) function from clojure.contrib.seq. I could simply copy its source, but I would prefer a more generic way of using function

Re: How to use functions from clojure.contrib?

2014-07-09 Thread Pierre Masci
Thank you Andy, that's exactly the answer I needed. I thought I might be missing "the right place where to look", because I'm new to the ecosystem. http://crossclj.info is a very good res

Re: How to use functions from clojure.contrib?

2014-07-13 Thread Pierre Masci
Haha, I've randomly come accross this exact same function in Prismatic/plumbing <https://github.com/Prismatic/plumbing>, plus a bunch of other interesting ones. I'll use that version from now. On Wednesday, 9 July 2014 13:26:21 UTC+1, Pierre Masci wrote: > > Thank you An

A few String functions we could implement in Clojure?

2014-07-19 Thread Pierre Masci
Hi all, just nit picking about Clojure's String API. I've been comparing it with Java's , and I noticed that (not surprisingly) they are very similar. There are just 2-3 functions that exist in Java but don't have an equivalent in Clojure. I

clojure.stacktrace/root-cause VS clojure.repl/root-cause, are they redundant?

2014-07-21 Thread Pierre Masci
Hi, I'm learning about tools to help me debug from the REPL, and I found these two with the same name: clojure.stacktrace/root-cause clojure.repl/root-cause For a very simple case (wrong arity), they give pretty similar output: user=> (char 0 0 0) CompilerException clojure.lang

Re: clojure.stacktrace/root-cause VS clojure.repl/root-cause, are they redundant?

2014-07-21 Thread Pierre Masci
iler.java:3846) nil The top part of their output is the same, but not the bottom. If no-one comes up with an explanation, I'll use both until I understand which one is more useful to me, and report back here if I remember (hopefully!) On Monday, 21 July 2014 12:30:17 UTC+1, Pierre Masci

how to send SSL certificate in POST request?

2017-02-21 Thread Pierre Masci
Hi, I am new to Clojure and using clj-http for the first time, to implement a REST client. I don't find anywhere how to indicate where my SSL certificate is located. Here is what I did: (ns my-client.core (:require [clj-http.client :as client] [clojure.pprint :refer :all])) (def my