That sounds like a different problem, don’t think Clojure 1.10.1-beta1 would
affect anything there.
> On Mar 23, 2019, at 5:57 PM, David Neu wrote:
>
> Hi Alex,
>
> I had been getting
>
> Error: Could not find or load main class clojure.main
> Caused by: java.lang.ClassNotFoundException: clo
Hi Alex,
I had been getting
Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main
when starting a socket repl with a custom repl function, e.g.
:aliases
{:socket {:jvm-opts
["-Dclojure.server.repl={:port,,:accept,somelib.repl/soc
(defn rotate [a n]
(let [l (count a)
off (mod (+ (mod n l) l) l)]
(concat (drop off a) (take off a
(rotate '((1 2) (3 4) (5 6) (7 8) (9 10)) 3)
=> ((7 8) (9 10) (1 2) (3 4) (5 6))
On Saturday, March 23, 2
Concat
(defn rotate [a n]
(let [l (count a)
off (-> (mod n l) (+ (mod n l) l) l)]
(concat (drop off a) (take off a
(rotate '((1 2) (3 4) (5 6) (7 8) (9 10)) 3)
=> ((7 8) (9 10) (1 2) (3 4) (5 6))
On Saturd
Could it finish off the result in some way other than flatten? flatten
would go too far if the input data were a collection of collections.
Indeed, I would support adding (some form of) rotate to the standard
library *on the condition that flatten be removed.* rotate is an
amusement, but fl