Re: "interleave" with one argument

2013-09-17 Thread Paul
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

Re: "interleave" with one argument

2013-09-17 Thread Paul
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, > >

Re: "interleave" with one argument

2013-02-15 Thread Andy Fingerhut
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

"interleave" with one argument

2013-02-15 Thread Denis Washington
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)))