Re: Anyone spent time with Kawa Scheme?

2018-04-03 Thread 'somewhat-functional-programmer' via Clojure
Thank you for posting these video links along with the time markers. I thought I'd enjoyed all of Rich Hickey's presentations before but I actually hadn't seen his "Clojure for Lisp Programmers". Clojure is the only lisp I "know" (still relatively a beginner) but have been fortunate enough to

Re: Anyone spent time with Kawa Scheme?

2018-04-03 Thread 'André' via Clojure
They maybe relevant too: https://www.youtube.com/watch?v=2V1FtfBDsLU, around 1h4min On 04/03/2018 05:29 PM, 'André' via Clojure wrote: > > Rich has covered some of the motivation of why not extending existing > Lisp->Java integrations, like Kawa and ABCL: > > https://www.youtube.com/watch?v=cPNk

Re: clojure.lang.PersistentVector cannot be cast to clojure.lang.IAtom

2018-04-03 Thread Timothy Baldridge
I think you're calling `deref` on the collection before passing it in? What it's saying is that `swap!` expects an atom and you handed it a vector. So either pass in the atom, or return a updated collection by replacing the call to `swap!` and the `doseq` with `(into collection selecteds)` On Tue,

Re: clojure.lang.PersistentVector cannot be cast to clojure.lang.IAtom

2018-04-03 Thread Renata Soares
Thanks for the tips! Em terça-feira, 3 de abril de 2018 20:39:25 UTC-3, Base escreveu: > > Swap requires an atom as an input. > > https://clojuredocs.org/clojure.core/swap! > > If you are trying to perform swap! on a collection that was just read from > json/read-str then it is probably not an a

Re: clojure.lang.PersistentVector cannot be cast to clojure.lang.IAtom

2018-04-03 Thread Renata Soares
I was passing as a parameter with @ before... it worked when i passed just the atom name. Thanks. Em terça-feira, 3 de abril de 2018 20:36:58 UTC-3, André escreveu: > > collection probably isn’t an atom. Do you have a fully working snippet? > > On 04/03/2018 08:24 PM, Renata Soares wrote: > > Goo

Re: clojure.lang.PersistentVector cannot be cast to clojure.lang.IAtom

2018-04-03 Thread Base
Swap requires an atom as an input. https://clojuredocs.org/clojure.core/swap! If you are trying to perform swap! on a collection that was just read from json/read-str then it is probably not an atom, and you would need to convert it to an atom before doing this. However, generally there are

Re: clojure.lang.PersistentVector cannot be cast to clojure.lang.IAtom

2018-04-03 Thread 'André' via Clojure
|collection| probably isn’t an atom. Do you have a fully working snippet? On 04/03/2018 08:24 PM, Renata Soares wrote: > Good Night, > > I have this function: > > (defn treat-requests [key-request collection] > (let [selecteds (filter #((keyword key-request) %) input)] > (doseq [item selecteds] >

clojure.lang.PersistentVector cannot be cast to clojure.lang.IAtom

2018-04-03 Thread Renata Soares
Good Night, I have this function: (defn treat-requests [key-request collection] (let [selecteds (filter #((keyword key-request) %) input)] (doseq [item selecteds] (swap! collection conj item where input is an output of clojure.data.json/read-str and swap is giving this following error:

Re: D&D + Clojure?

2018-04-03 Thread Shaun Gilchrist
Also interested! On Tue, Mar 27, 2018 at 1:58 PM Larry Christensen wrote: > That would be super cool, I knew I couldn't be the only D&D Clojurist out > there. I'll look into the details and get back to you. I'll may just open > source it on Github, which should make it easy. > > > On Tuesday, Ma

Re: [ANN] packthread 0.1.10

2018-04-03 Thread Alan Thompson
If you are interested in alternatives to `clojure.core/->`, you may be interested in the `it->` macro from the Tupelo library . Here is a summary: = Usage examples for tupelo.core/it→

Re: Anyone spent time with Kawa Scheme?

2018-04-03 Thread 'André' via Clojure
Rich has covered some of the motivation of why not extending existing Lisp->Java integrations, like Kawa and ABCL: https://www.youtube.com/watch?v=cPNkH-7PRTk, around 3:25 On 04/02/2018 05:53 PM, 'somewhat-functional-programmer' via Clojure wrote: > I've recently come across Kawa Scheme and am v

[ANN] packthread 0.1.10

2018-04-03 Thread Jason Felice
This release handles `if-some` and `when-some` and supports ClojureScript. packthread https://github.com/maitria/packthread "Heavy" threading macros. Why? Because every time you've wanted to: (-> 42 (let [x 79] (+ x)) inc) but clojure wouldn'

Clojure spec check and recovery

2018-04-03 Thread Alex Miller
Yes -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to c