Arc Forumnew | comments | leaders | submitlogin
5 points by akkartik 2189 days ago | link | parent

musk_fan, your initial attempt inspired me to build on it :) Now that we can enumerate from a start number to an end, I hanker after something more comprehensive. Also, after reading malisper's description of iterate at http://malisper.me/loops-in-lisp-part-3-iterate, I thought I'd try to mimic its syntax, in hopes that it'll fit better with a Lisp and be extensible.

Here's what I ended up with: http://akkartik.name/post/list-comprehensions-in-anarki. Is the description clear?



3 points by akkartik 2164 days ago | link

List comprehensions are now in Anarki: https://github.com/arclanguage/anarki/commit/b7155e56a6

-----