On Sep 8, 5:39 am, Timothy Pratley wrote:
> Yet another way :)
>
> user=> (map + (rest a) a)
> (3 5 7 9 11)
wow! i like your solution!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this
> Vimclojure and emacs (on any operating system) will have at least the
> ability to copy from the REPL's history and paste elsewhere in the editor,
> but maybe not any nice way to export it to something else, like the mail
> client used to post to this list.
With emacs you can simply safe the buf
> user=> (defstruct s1 :a :b)
> #'user/s1
> user=> (s1 1 2)
(struct s1 1 2) or (struct-map s1 :a 1 :b 2)
--> {:a 1, :b 2}
or:
(struct s1 1)
--> {:a 1, :b nil}
(struct-map s1 :b 2)
--> {:a nil, :b 2}
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
> It does not look like wildcarding is supported in the ns macro and it
> seems silly to explicitly nominate each class that I want to have at
> my disposal. Am I thinking about this all wrong?
As far as i know you have to add each of them...
--
You received this message because you are subscrib
> Thanks for both answers. Two ways of doing it. Great!
The :jvm-opts "-Xmx1g" -option in the project-file doesnt seem to work
with the swank-server.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googleg
You should close the parenthesis all in one line:
(defn binary-search
"Search sorted list for target using binary search technique"
([m_list target]
(if (empty? m_list)
false
(binary-search m_list 0 (- (count m_list) 1) target)))
([m_list m_left m_right