ANN: clj-schulze, a Clojure implementation of the Schulze voting method

2011-08-14 Thread Benjamin Esham
Hi all, I wrote a small library called clj-schulze [1] to implement the Schulze voting method [2]. I'd appreciate any comments you have; I'm particularly interested in knowing whether I'm doing things idiomatically and whether this library is laid out properly to be used by others. [1]

Re: converting a string into a set

2011-07-18 Thread Benjamin Esham
Tuba Lambanog wrote: Tuba Lambanog wrote: Hello, My apologies for this newbie question. I couldn't find a way to convert a string to a set, thus: abc = #{a b c} (set abc) gives me #{\a \b \c}. I'm expecting instead: #{a b c} Hi Tuba, Are you quite sure that #{\a \b \c} is not

Re: following Rich's talk at NYC Clojure this Wednesday

2011-07-18 Thread Benjamin Esham
Vivek Khurana wrote: Stuart Halloway wrote: Several people have asked about access to Rich's upcoming talk this Wednesday night [1]. In order to make information available for those who are not present in NYC, we are planning to do the following: Please post the timing along with

Re: What's the best way to test private functions?

2011-07-16 Thread Benjamin Esham
Brian Marick wrote: Benjamin Esham wrote: I am writing a library [1] which has only one function that should be exposed to users. I'd like to be able to test all of the other functions, which are marked private with defn-. Of course, these functions are inaccessible from the testing

What's the best way to test private functions?

2011-06-17 Thread Benjamin Esham
Hi all, I am writing a library [1] which has only one function that should be exposed to users. I'd like to be able to test all of the other functions, which are marked private with defn-. Of course, these functions are inaccessible from the testing namespace (I'm using the testing boilerplate