Search
Saturday, 17th of August 2019, 2:09:44 UTC
3:46:59
beach
Good morning everyone!
11:26:41
PP
Hello. How do I do `(dotimes (i 10) (dotimes (j 10) (print (cons i j))))` equivalent in loop? I mean `(loop for i upto 10 for j upto 10` goes in parallel so to speak and doesn't give permutations
11:28:03
PP
In one `loop` macro preferably, yea. I mean I could loop over `alexandria:map-product` but is that efficient?
11:28:28
jackdaniel
it conses expoinentially
11:28:39
jackdaniel
PP: wrt I'm afraid you need to (loop for i from 0 to 10 do (loop for j from 0 to 10 do (print (cons i j)))
11:29:19
jackdaniel
or write your own macro (dotimes* ((i 10) (j 10)) …) based on whatever you like (i.e do or loop or dotimes)
13:41:35
p_l
Has anyone looked into implementing CommonQT using the SIP code generator from PyQt5?
Saturday, 17th of August 2019, 14:09:44 UTC