hello nott a expert my self
but *#*(:ip %) == :ip
and *#*(:exists %) == :exists
witch seems more idiomatic
2010/5/9 Tim Morgan
> I picked up Programming Clojure by Stuart Halloway last week and am
> working through the book. I'm coming from a Perl/Python/Ruby
> background, so Java + Lisp + func
you should learn how the java class paths works
but take a look At http://github.com/technomancy/leiningen
i wish i would how found that earlier.
2010/5/10 Mat
> Hi all,
> I am totally new to clojure and this is a very simple question, but I
> spent the last two hours trying to figure this out
so i dont se clojure.contrib.string in the contrib
the documentation is maybe lagin?
2010/5/11 Mat
>
> On May 11, 7:41 am, Mat wrote:
> > Thank you very much, this time it worked perfectly.
> > I knew it was very easy, but I could not figure it out not having all
> > that java/shell experience.
there is a way to subscribe to reference types in clojure via
the add-watch function.
you can with wherry little hackering make a call me once function
that under the hod whill hock upp and remove the watcher when
called
this whill not be syncronus butt its easy to do
!!!EXAMPLE
(get-data-once M
(defn "a method" method [args] (println "Hello" args))
ok so im gonna gess that you should putt the docstring after the name
(defn method
"a method"
[args]
(println "hello" args))
2010/5/24 Shikhar
> Hi,
> I've just installed the Counterclockwise plugin and written a hello
> world program
theres a function called merge
2010/6/1 Ryan
> I have the following
> user=> (class ({:one "1"} {:two "2"} {:three "3"}))
> clojure.lang.PersistentArrayMap
>
> but am a little confused as to how best to access the data
>
> for example:
> user=> (count ({:one "1"} {:two "2"} {:three "3"}))
> 1
>
(dosync
(alter local-ref-map1 assoc stuff stuff-struct))
(assert (not (@global-ref-map2 stuff)))
so this asserts that the global map dosent hawe something bound to
the key of what stuff is refering to.
from this code i dont se what the data from link comes from
or how its related to the globa
Hey i uploaded a jar
http://rapidshare.com/files/396096758/clojure-1.2.0-master-SNAPSHOT.jar.html
works 10 times so hurry :D
So i cant see whats wrong with your code
from that snippet so try it out with 1.2
and if it doesn't work post it on github
i am a bit suspicious about it being a bug :p
20
calling rest dosent give you nil it gives you an empty seq
so the if statment never fails
try
(defn my-zipmap [keys vals]
(loop [my-map {}
[kf & kr] (seq keys)
[vf & vr] (seq vals)]
(if (and kf vf)
(recur (assoc my-map kf vf) kr vr)
my-map)))
2010/6/6 Jon Seltzer
So its the calling of first that gives you nil
here is some example code
user=> (rest '(2))
()
user=> (rest '())
()
user=> (first '())
nil
2010/6/7 patrik karlin :
> calling rest dosent give you nil it gives you an empty seq
> so the if statment never fails
>
Hey Brian
change [org.clojure/swank-clojure "1.2.1"] => [swank-clojure "1.2.1"]
2010/6/7 Brian Troutwine :
> Hello all,
>
> I have the following in project.clj in my newly lein generated project:
>
>
> (defproject void "1.0.0"
> :description "A toy."
> :dependencies [[org.clojure/clojure "1.1.
Hello theres a wherry "spartan" screencast on vimeo that install all this with
regular emacs http://vimeo.com/11844368
2010/6/20 Larry Travis :
> To save my life, I can't get Snow Leopard, Aquamacs, Clojure, and Slime to
> work. I have installed Aquamacs 2.0, then ELPA, then the packages
> clojur
12 matches
Mail list logo