Fork me on GitHub
#clojure
<
2018-09-09
>
chrisps13:09:44

What can I do instead of this (map (fn [a b] [a b] ) list1 list2) -> vectors ?

enforser13:09:55

((comp vec zipmap) list1 list2)

chrisps13:09:49

I need to retain sort order

chrisps13:09:22

so I think I should avoid zipmap

chrisps13:09:25

(mapv … perhaps?

enforser13:09:33

I think you could replace (fn [a b] [a b]) with vector

enforser13:09:01

an yeah, if the output list of vectors needs to be a vector then mapv would work

chrisps13:09:17

(mapv vector list1 list2) is correct I think

isaac15:09:01

should support java.nio.file

mfikes15:09:24

^ This supports async file I/O if that's what you are after.

eskos15:09:28

Consider its history I wouldn't be surprised to see clojure.java.nio at some point. Or if someone's adventurous, I wouldn't mind entirely NIO based specialized IO library either...hmm, maybe I should put that into my list of things I should make at some point...

andy.fingerhut17:09:45

@isaac I haven't used this, but there might even be other Clojure nio libs besides this one: https://github.com/pjstadig/nio

andy.fingerhut17:09:25

Appears there are 2-3 others as well on Github

andy.fingerhut17:09:40

I don't know if it is the case with these libs or not, but when the layer of Java interop code is "thin" enough, some people prefer to simply use Java interop themselves in their Clojure apps.

borkdude17:09:19

I’m not sure what’s up with this link: https://go.cognitect.com/core_async

Alex Miller (Clojure team)18:09:55

That’s going through a marketing tracker (which we don’t even have anymore afaik)

Alex Miller (Clojure team)18:09:36

Did you find that someplace current?

borkdude19:09:10

I googled for “webinar core.async david nolen” I think