23:50:42sjlDoesn't seem super surprising... it's collecting into a list. Each iteration, it adds a two-element list onto the end of the list. That two-element list happens to contain the original list in this case.
23:51:51sjlyeah after reading 6.1.3 I'm 90% sure it has to work like I originally thought to be compliant
23:52:07sjlThe var has to be in scope because it says it has to be bound as if by WITH
23:56:08White_Flamethe original question I was looking at is if it would be able to push & nreverse, but I think this would make that too heavyweight and basically forces appending to the tail
23:58:41_deathsolrize: (defun collatz (n) (loop for k = n then (if (oddp k) (1+ (* k 3)) (floor k 2)) and prev = 0 then k until (= prev 1) collect k))
0:00:09solrize_death thanks and oh man that's confusing
0:00:47sjlobligatory overengineered iterate version https://github.com/sjl/euler/blob/master/src/utils.lisp#L573-L588 :)
2:30:49ahungryDoes scheme have something similar to a plist in CL or a map in Clojure? A simple way to get a field out like (getf '(:x 1 :y 2) :x) => 1 - I know of assoc - I guess I could write a wrapper to get the cadr of one
2:32:37ahungrySeems that wouldn't really solve my want of having a simple literal format for the data though, so I'd probably just have to make something that walks a list 2 atoms at a time and stops if the first matches my lookup
2:38:35p_lahungry: not sure how standard it is, but: https://groups.csail.mit.edu/mac/ftpdir/scheme-7.4/doc-html/scheme_12.html
4:11:29fiddlerwoaroofIn terms of LOOP alternatives, there's also https://github.com/Shinmera/for, which I prefer to iterate, if I'm going to use a library
4:11:46fiddlerwoaroofShinmera's libraries are generally well-documented and have nice APIs
4:12:35fiddlerwoaroofACTION points to https://github.com/Shinmera/lquery
10:14:36d4ryushi, is there a way to create a in memory stream? I would like to pass one 'end' to a thread running uiop/run-programm and the other 'end' to a thread which reads from it.
10:16:14lieventwo-way-stream with string-streams. there's an example in the hyperspec.