Re: doc strings for multimethods?

2008-12-19 Thread Lauri Oherd
Docstrings for individual defmethods are not possible. You can find more info about it there: http://groups.google.com/group/clojure/msg/f7751913e875953f Lauri On Sat, Dec 20, 2008 at 3:05 AM, Jason wrote: > > Am I mistaken, or is there currently no nice syntax for giving doc > strings to metho

Re: clojure.contrib.enum Exception

2008-12-20 Thread Lauri Oherd
Last version of Clojure should be at the moment of writing this SVN 1176. Clojure's source repo (and also Clojure contrib) has moved to Google Code. See http://groups.google.com/group/clojure/browse_thread/thread/6b4a5284d61a682a/42495079592facd7 for more details. Lauri On Sun, Dec 21, 2008 at

Re: class diagram

2008-12-21 Thread Lauri Oherd
It was made by Chouser: http://groups.google.com/group/clojure/browse_thread/thread/c7ae505290cdf59a/742f3b5f740e4592 Lauri On Sun, Dec 21, 2008 at 5:44 PM, Mark Volkmann wrote: > > Somebody created a class diagram for the Java classes and interfaces > in the Clojure implementation, I believe

Re: How to print without spaces?

2009-11-11 Thread Lauri Oherd
Hi, (println (str "a" "b" "c")) Regards, Lauri On Wed, Nov 11, 2009 at 9:15 AM, John Ky wrote: > Hi all, > > How to I print without spaces? > > For example: > >    (println "a" "b" "c") > > Gives: > >    a b c > > Rather than > >    abc > > Thanks, > > -John > > -- > You received this message

Re: Getting Started in Mac OS X Snow Leopard

2009-12-07 Thread Lauri Oherd
I have a Macbooc Pro with Sweden keyboard so had a little different issues here - by default not possible to type characters {[]} on Carbon Emacs. I solved it by adding the following to my .emacs file: ;; paredit-mode (add-to-list 'load-path (expand-file-name "~/.emacs.d/paredit")) (autoload 'par

Re: Getting Started in Mac OS X Snow Leopard

2009-12-07 Thread Lauri Oherd
mand n On Mon, Dec 7, 2009 at 4:02 PM, Lauri Oherd wrote: > I have a Macbooc Pro with Sweden keyboard so had a little different > issues here - by default not possible to type characters {[]} on > Carbon Emacs. > I solved it by adding the following to my .emacs file: > >

Re: (* BigDecimal double) should result in BigDecimal, not in Double, isn't it?

2010-01-18 Thread Lauri Oherd
On page http://clojure.org/data_structures#toc2 there is written: "Any numeric operation involving Doubles yields a Double." Hope this helps, Lauri On Sun, Jan 17, 2010 at 12:13 AM, Jevgeni Holodkov wrote: > Currently, if the result of the multiplication is too small, then the > type will be dou

The 2010 Lisp Game Design Challenge

2010-03-20 Thread Lauri Oherd
Greetings, everyone, Just noticed that here is not yet a mention about The 2010 Lisp Game Design Challenge (http://dto.github.com/notebook/lgdc.html) where you can design, create, and release a game in 7 days using any dialect of Lisp, between 18 March and 1 April, 2010. I hope you find it interes

Case insensitive regexp

2008-10-05 Thread Lauri Oherd
How can I make regexp case insensitive? Should I use function clojure/re-pattern for that by passing it a second argument "Pattern.CASE_INSENSITIVE" (as described in http://www.regular-expressions.info/java.html)? Btw I noticed that function clojure/find-doc is currently also case sensitive: use

Re: Fibonacci function performance compare between clojure and scala

2008-10-19 Thread Lauri Oherd
There is also a faster way to calculate fibonacci numbers in Clojure (code taken from from http://en.wikibooks.org/wiki/Clojure_Programming#Lazy_Fibonacci): (defn fib-seq [] ((fn rfib [a b] (lazy-cons a (rfib b (+ a b 0 1)) user=> (time (take 38 (fib-seq))) "Elapsed time: 0.0329