My bad - fixed in 1.6!
On Friday, February 15, 2013 9:15:31 PM UTC, Denis Washington wrote:
>
> Hi,
>
> I just solved the "Replicate a Sequence" problem on 4clojure [1] using
> "interleave". However, I noticed that "interleave" cannot be called with
> a single argument. My first attempt at solv
Hi Denis,
This should also work, but fails for the same reason you outline:
#(apply interleave (repeat %2 %1))
The jira ticket says the enhancement was closed in V1.3 although it is
still failing in V1.5.1.
P.
On Friday, February 15, 2013 9:15:31 PM UTC, Denis Washington wrote:
>
> Hi,
>
>
There's a ticket requesting that enhancement:
http://dev.clojure.org/jira/browse/CLJ-863
Andy
On Feb 15, 2013, at 1:15 PM, Denis Washington wrote:
> Hi,
>
> I just solved the "Replicate a Sequence" problem on 4clojure [1] using
> "interleave". However, I noticed that "interleave" cannot be
Hi,
I just solved the "Replicate a Sequence" problem on 4clojure [1] using
"interleave". However, I noticed that "interleave" cannot be called with
a single argument. My first attempt at solving the problem was like
this:
(defn replicate-n-times [xs n]
(apply interleave (replicate n xs)))