Anne's recent attempt to start a new thread for this question seems not to
have worked. I'd hate for her and ataggart to be frustrated by further
back-and-forth over the identity of the thread he started, so I'm starting a
new thread for her question.
=== begin content from Anne ===
Sorry for the
On Jul 7, 5:02 am, Mike wrote:
> (not sure where my reply to Chouser et al. went, but basically I said
> that I was writing a macro and I might be overdoing it. I was right!)
>
> Here's what I was trying to accomplish, but in functions, not macros:
>
> (defn slice
> "Returns a lazy sequence co
On Apr 4, 4:16 pm, Stuart Sierra wrote:
> This can be macro-ized:
>
> (defmacro bigstr [& strings]
> "Concatenates strings at compile time."
> (apply str strings))
>
> user> (macroexpand-1 '(bigstr "This is a really long string "
> "that I just felt like using "
On Feb 19, 2:39 pm, Phil Hagelberg wrote:
> linh writes:
> > # ruby code
> > def foo(x, y)
> > x + y
> > end
>
> > def bar
> > [1, 2]
> > end
>
> > foo(*bar) # this is fine, the result will be 3
> > foo(bar) # this is not ok, will raise exception
>
> > bar returns an array of size 2, but foo
Or anonymous function literals?
user=> (map #(.length %) ["mary" "had" "a" "little" "lamb"])
(4 3 1 6 4)
user=> (map #(.indexOf % (int \a)) ["mary" "had" "a" "little" "lamb"])
(1 1 0 -1 1)
On Feb 5, 5:05 pm, Jeffrey Straszheim
wrote:
> Would memfn not work for you?
>
> http://clojure.org/java_
On Jan 24, 7:31 am, e wrote:
> Then again, I already chimed in. a list isn't a set. You said so in the
> introduction. Maybe set's need there own print representation, like <>
> . uh oh, starting to look like C++
Like this?:
user=> (hash-set 1 2 3)
#{1 2 3}
> On Sat, Jan 24, 2009 at 3
On Jan 23, 1:47 pm, Zak Wilson wrote:
> And it's now working perfectly, producing a new generation every
> second. Now I actually have to tweak it to produce good results.
It's great that this is working for you. I tried the same approach in
a genetic programming project of my own, and I eventu
On Jan 18, 11:48 am, wubbie wrote:
> Hi,
> Just tried a piece of code from here...
> (defn my-deref [x]
> (if (or (isa? clojure.lang.Ref (class x))
> (isa? clojure.lang.Agent (class x))
> (isa? clojure.lang.Atom (class x)))
> @x
> x))
> java.lang.ClassNotFoundExcepti
On Sat, Jan 17, 2009 at 11:06 AM, Greg Harman wrote:
>
> Meta: This thread is a revival and continuation of last month's
> discussion at:
> http://groups.google.com/group/clojure/browse_thread/thread/e1226810b6ac7bfc/8e0f53c141c26fcc?lnk=gst&q=eval+binding#8e0f53c141c26fcc
>
> ---
>
> Nathan, did
On Jan 7, 7:01 am, "Mark Volkmann" wrote:
> On Wed, Jan 7, 2009 at 3:13 AM, Tom Ayerst wrote:
> > Hi Mark,
>
> > I'm afraid I don't like the "big let" style and I found it hard to follow
> > some of your code, that may just be a personal thing but a lot of the vars
> > defined in let are only us
On Dec 12, 2:29 pm, Randall R Schulz wrote:
> > > I think I may have asked this before, but what Vim version
> > > requirements
> > > does Gorilla have?
>
> > ..
>
> I guess what you should say at least is that it requires Ruby and the
> Vim Ruby module / extension / whatever. Unfortunately, ne
Could you achieve this through a combination of clojure.zip/node and
get-in/assoc-in/update-in? Of course the missing piece is going back
from nodes to locs.
-- Nathan
On Dec 5, 2:54 pm, Randall R Schulz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I looked at the Clojure implementation of Huet's Zipper
12 matches
Mail list logo