Fork me on GitHub
#beginners
<
2022-01-29
>
pinkfrog01:01:29

For function naming, why do we have admix instead of addmix.?

dpsutton01:01:24

> clj
Clojure 1.10.3
user=> (apropos "admix")
()

dpsutton01:01:30

what is "we" and what do we have?

hiredman01:01:11

core.async

👍 2
pinkfrog02:01:57

sorry, core.async

seancorfield04:01:17

Because admix is a well-defined word and addmix is not?

seancorfield04:01:17

Whereas https://www.merriam-webster.com/dictionary/addmix "The word you've entered isn't in the dictionary."

seancorfield04:01:27

☝️:skin-tone-2: @UGC0NEP4Y

😉 1
juri09:01:01

I am trying to use https://github.com/mikera/imagez, and initially just trying to set-pixels to a color. The type hint for the pixels I should provide for this is ^ints , but all the methods in mikera.image.colours seem to be working with ^long . So when I try this for example (ic/set-pixels (ic/new-image 10 10) (into-array (repeat 100 (colors/rgb 0 120 215)))) , I get the following error message. Does anyone know how to do this?

juri09:01:30

This doesn't work either (ic/set-pixels (ic/new-image 10 10) (into-array Integer/TYPE (repeat 100 (colors/rgb 0 120 215))))

lassemaatta09:01:01

or perhaps (into-array Integer ... to get an array of Integers instead of ints

juri10:01:15

using int-array worked! Although the color displayed was not the one corresponding to my RGB values, so I'm guessing that it ignores the "value out of range for int", that I got above

sova-soars-the-sora17:01:00

I have a file of tab separated values & want to parse them into a vector of maps where the keys are the names in the first line.

delaguardo17:01:56

https://clojure.github.io/data.csv/ You can read it as CSV with :separator \tab

Humanist196517:01:14

Is https://cljdoc.org/ a legitimate clojure documentation site?? There's problems with its SSL certificate ATM

Cora (she/her)17:01:05

yes, it's legitimate. we're looking in to the SSL issue. sorry for the confusion!

mario-star 2
👍 2
sova-soars-the-sora17:01:34

Uh... 😅 There is a site (not https://clojuredocs.org/) that will render clojure documentation from.. github sources? that might be it and yeah it looks down at the moment

Cora (she/her)17:01:05

yes, it's legitimate. we're looking in to the SSL issue. sorry for the confusion!

mario-star 2
👍 2