Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not being a huge lisp person, are there lazy-evaluating lists in lisp? So that I could define the tabstop sequence to be a list that would continually be evaluated, but only as far as the calling function was asking for (like Haskell)? Otherwise, there is still a finite end to the list even if I can easily generate a ridiculously long sequence automatically.


I don't believe there's anything in the Common Lisp standard for it, but I think lazy lists should be implementable with macros.


Nope, strict eval only. Just define a max, and if you hit it, raise it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: