sabu36
sabu36
In Racket, there [are](https://docs.racket-lang.org/search/index.html?q=for%2F) `for/list`, `for/vector`, `for/or`, `for/fold`, etc. So I guess another way is: `force/set` and `collect/set` etc. Not sure which way is better.
Another idea—using analogy from casting: ``` > (defc basket (make-set :items '(1 2 3 4 5))) BASKET > (for x in basket -> (* 2 x)) # > (for x...
Hey, I've managed to implement the last idea—FOR with an arrow—it accentuates change of type when it happens: ```lisp CL-USER> (defc mylist (list 1 2 3 4 5)) MYLIST CL-USER>...
In fact, I think this order makes more sense: ``` (over as -> ) ``` When the expression for "thing" is long, I don't have to remember the variable name,...
Thanks for detailed explanation. I imagine you intend to keep this to fundamental and I don't know they qualify but I have some requests: * `for … setcollect` (there's already...
I'm studying a book called *Land of Lisp* and set (in terms of list or hash-table) came up in ch.8 (wumpus) and ch.10 (evolution) so far. Some background on how...
When I said "other variants" I actually just meant SETQ and SET in Common Lisp—I didn't know about any variant in other languages—so I was just talking about names on...