Re: Clojure - Python Style suggestion

2013-02-05 Thread Shouxun Yang
When I taught myself Scheme and Common Lisp more than ten years ago, I didn't have any problem with the parentheses, probably because I just learned a little bit of C/C++ or Pascal (Delphi) and were eager to learn Emacs (one of the two major editors in the Unix/Linux world) when I switched to the t

Re: what is the modern equivalent of clojure.contrib.java-utils/file?

2012-10-24 Thread Shouxun Yang
clojure.java.io/file On Thu, Oct 25, 2012 at 11:08 AM, larry google groups wrote: > > I want to use clojure.contrib.java-utils/file. I am using Clojure 1.3 and > leinengen. What is the modern equivalent of clojure.contrib.java-utils/file? > > -- > You received this message because you are subscri

Re: dropped into clojure and lein! compojure file for project.clj?

2011-09-14 Thread Shouxun Yang
According to http://clojars.org/compojure , the current line for project.clj is just: [compojure "0.6.5"] On Tue, Sep 13, 2011 at 10:41 PM, deltag wrote: > I have been dropped into a clojure project which was abandoned some time ago > and now reactivated..So, I am picking up clojure and lein

Re: weird behavior: what is the difference between sequential? and my own predicate?

2011-08-26 Thread Shouxun Yang
在 2011-8-26 下午11:44,"Tassilo Horn" 写道: > > Shouxun Yang writes: > > > (defn my-flatten > > [coll] > > (loop [acc [] coll coll] > > (if-let [[a & coll] coll] > > (if (or (list? a) (vector? a)) > > (re

Re: weird behavior: what is the difference between sequential? and my own predicate?

2011-08-26 Thread Shouxun Yang
; 写道: > Hi > > On 25 August 2011 18:16, Shouxun Yang wrote: >> Dear Clojurians, >> >> while playing with http://4clojure.com I found a perplexing behavior >> when I submit my own code for implementing my own poor implementation >> of my-flatten for problem 28:

weird behavior: what is the difference between sequential? and my own predicate?

2011-08-26 Thread Shouxun Yang
Dear Clojurians, while playing with http://4clojure.com I found a perplexing behavior when I submit my own code for implementing my own poor implementation of my-flatten for problem 28: (defn my-flatten [coll] (loop [acc [] coll coll] (if-let [[a & coll] coll] (if (or (list? a) (vec