Fork me on GitHub
eccentric J07:11:33

I've got a string like [[[a, 1], [b, 2]], [[a, 4], [b, 5]]] what's the most lightweight way to turn that into a map?


what map do you seek to obtain? My first shot would be

(->> "[[[a, 1], [b, 2]], [[a, 4], [b, 5]]]"
     (apply concat)
     (into {}))
But that would create a map w/ only 2 entries, given the a / b keys would be duplicate

☝️ 4
eccentric J08:11:20

Ack! That's an issue with my example let's pretend I wrote: [[[a, 1], [b, 2]], [[c, 4], [d, 5]]]

eccentric J08:11:17

I think your example mostly works except that I'm not sure if it would interpret a-d as either strings or keywords and might error. I'll try it to be sure though.

eccentric J08:11:56

Nevermind! That totally works, wow!


✌️happy to help!

💯 4
eccentric J08:11:58

Thanks! Now I just gotta figure out how to adapt a solution like that into JS given that it doesn't have a magic read-string function 😭


JSON.parse? Good luck with adapting the rest ;p


cljs.reader/read-string is available in cljs

eccentric J22:11:18

Right, and what a treat it would be if I were working in ClojureScript 😛

Lone Ranger13:11:04

Dragan made it to front page of hacker news!!!

parrot 20
😎 4

anyone happen to know any mind mapping (or alternatively diagram/tree drawing) software that has good clients for both android as well as linux or web? (I suppose a good mobile website client would be acceptable instead of an android app, if necessary)


Hmmm mindmeister seems decent so far


I really liked "mimind" on android but there's no way to use it on desktop linux


Android emulator (?)

bananadance 4

good idea. Any experience? Are they fairly seamless to use?


No, no experience at all. It might work though 🙂 I'll google xD


Thanks! I saw that and tried a few but my impression so far is that one with real clients might be preferable 🙂


Yes, of course


Late to the party; I really liked xmind but it seems to have made itself subscription-funded, which annoys me


This talk by Rich Hickey on YouTube: says it was given to the NYC Java Study Group. It was definitely before 2012, and I would guess it was given in 2008 or perhaps even 2007. If anyone knows what month and year it was given, and where, or especially some announcement message about the meeting with time and group and location, that would be of interest to me, to record with the transcript of the talk.


@andy.fingerhut if that's "clojure for java programmers part 1", the following page suggests 2008 june --


@sogaiu . Thanks. Somehow I was forgetting about that page, which I have seen before. June 2008 sounds plausible. In the introduction he mentions a talk he plans to give later in Europe, and in the Clojure for Lisp Programmers talk that was in Sep 2008, he mentions having given that talk in Europe earlier, so the timeline fits.


Amazing to watch that talk in the context of it being eleven and a half years ago...


Yeah, while a lot has changed in Clojure, so much is the same as it was originally.


thanks for mentioning this talk -- i'd seen the lisp set, but not the java set 🙂


There should be a published transcript within a week or so, if you prefer reading over listening.


wow -- i appreciate your transcript work. thanks so much!


I'm definitely in the transcript-over-video camp -- and I really appreciate those transcripts! Thank you!


did you know you can get a youtube generated transcript, which at least might be a good starting point to build a more accurate one?


if you click the "..." below the bottom right of the video there's an "open transcript" option


Thanks for the tip. I have taken a quick look at that, and while it takes me a while to type in the transcripts, it isn't clear to me that starting point would speed things up significantly. So many corrections to make.


i use that to search for particular spots - it can be fun to see some of the results :)