Fork me on GitHub
#test-check
<
2017-04-04
>
johanatan20:04:27

hi, is there an equivalent of listOfN? list-distinct comes close (with its :num-elements param) but I don't want to forbid duplicates.

johanatan20:04:01

also, is there a function to convert a list of generators to a generator of a list?

johanatan20:04:34

i suppose apply gen/tuple could do the latter

johanatan21:04:45

actually yes apply gen/tuple definitely answers my second question

gfredericks22:04:52

@johanatan gen/vector can do it too.

johanatan22:04:00

@gfredericks what about listOfN?

gfredericks22:04:12

@johanatan does that mean a fixed length list? That's what I'm saying gen/vector can do, if you pass a length arg

johanatan22:04:45

Oh I see. Yes a fixed length list