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 jevgeni.holod...@gmail.com wrote: Currently, if the result of the multiplication is too small,

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

Re: Getting Started in Mac OS X Snow Leopard

2009-12-07 Thread Lauri Oherd
, 2009 at 4:02 PM, Lauri Oherd lauri.oh...@gmail.com 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: ;; paredit-mode (add-to-list 'load

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 newho...@gmail.com 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 because you are

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 r.mark.volkm...@gmail.com wrote: Somebody created a class diagram for the Java classes and interfaces in the Clojure

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: 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: