gt; http://blog.fogus.**me/2010/01/22/de-chunkifying-**sequences-in-clojure/<http://blog.fogus.me/2010/01/22/de-chunkifying-sequences-in-clojure/>.
>>
>> On Sunday, March 17, 2013 1:12:17 AM UTC-7, bruce li wrote:
>>>
>>> Hello, everyone. I'm writing some code that ut
20
21
22
23
24
25
26
27
28
29
30
31
and returns: 2
So why the lazy sequence is realized more than it is needed? Could I
enforce the laziness and save unnecessary operation?
Thanks,
Bruce Li
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" grou
Hello,
I'm working on a piece of code that uses congomongo to access mongodb. What
I want to implement is to use one collection of the DB as a queue(let's
say, it's called "task").
Using congomongo, it's easy to fetch a task that is of status :queue : (def
t (fetch-one :task :where {:status :queue
hat but it would be the same story for
> *out* wouldn't it. Noone redirects System.out when you bind *out* to some
> writer, however still it works...
> I don't exactly have time to look into this now but I may do this
> afternoon :)
>
> Jim
>
>
> On 05/03/13 15:0
*err* writer, but instead use the System/err
stream will not get affected.
Hope this makes sense.
2013/3/5 Jim - FooBar();
> On 05/03/13 14:50, bruce li wrote:
>
> What is the difference between *err* and System/err?!
>
> its the same but wrapped in a PrintWriter
>
>
>
e string created by any nested printing
> calls."
> {:added "1.0"}
> [& body]
> `(let [s# (new java.io.StringWriter)]
> (binding [*out* s# *err* s#]
>~@body
>(str s#
>
> Jim
>
>
>
>
> On 05/03/13 14:33, Jim - Fo
up to you what to do with it... :)
>
> HTH,
> Jim
>
>
> On 05/03/13 08:56, bruce li wrote:
>
>> Hi, guys,
>>
>> I'm currently playing clojure with android monkey runner. So far it works
>> fine but just one unpleasant thing -- the android monkey ru
Hi, guys,
I'm currently playing clojure with android monkey runner. So far it works
fine but just one unpleasant thing -- the android monkey runner default
prints a lot of junk information to stderr such as:
March 05, 2013 4:46:47 pm com.android.chimpchat.ChimpManager
sendMonkeyEventAndGetRespons
integrate it with ac-nrepl? Or is
there any better alternatives? PS. I do miss slime fuzzy complete when I
program common lisp though. Also, can nrepl by default make completions on
Java methods? I can only find it possible in ac-nrepl.
Any help would be appreciated.
Bruce Li
2013/1/20 fb
&g
ms to slow down a lot when the list grows larger. I'm
wondering if in clojure there is some efficient idiom to handle such
situation such as efficient concatenation?
Thanks,
Bruce Li
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
T
Very helpful. Thanks so much!
2012/12/18 Chas Emerick
> On Dec 17, 2012, at 12:39 PM, Ben Wolfson wrote:
>
> > On Mon, Dec 17, 2012 at 9:32 AM, Chas Emerick wrote:
> >>
> >> What you're trying to do is really a special case of mutual recursion:
> >> because Clojure's methods are separate functi
Hello, everyone.
I'm currently trying to model an automata using multi-method. So in my
code, I have something like:
(defmethod trans :state
[state]
; ...
(trans ..
In the last line, the trans will be called with some different state.
However, it seems that such call
2012/10/6 Hugo Duncan
> bruce li writes:
>
> > I'm trying ritz and having some issues with SLDB that really confused
> > me. When I switch on the slime-break-on-exception, it seems it sometimes
> > doesn't work. The SLDB buffer won't pop up and I some
Hello, Hugo.
I'm trying ritz and having some issues with SLDB that really confused
me. When I switch on the slime-break-on-exception, it seems it sometimes
doesn't work. The SLDB buffer won't pop up and I sometimes can see the
exceptions in the terminal (but sometimes not :( ).
The easiest wa
14 matches
Mail list logo