freenode/#lisp - IRC Chatlog Search Saturday, 17th of August 2019, 0:40:50 UTC 3:46:59 beach Good morning everyone! 3:47:23 LdBeth Hello beach 5:41:54 ober hi 5:42:17 beach Hello ober. 9:59:09 SaganMan ** NICK nsfw 9:59:25 nsfw ** NICK SaganMan 11:06:13 Inline__ ** NICK Inline 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:27:12 ck_ PP: you mean, in one loop? 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:18 jackdaniel it is not 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) 11:30:09 PP ok, thank you very much!:-) 11:48:41 _death BELOW, not TO