Re: How to design a function like Clojure 'iterate'

Posted:
Thu Jun 19, 2014 10:01 am
by ssqq
richyboy, yes, you are right. I think so.
Re: How to design a function like Clojure 'iterate'

Posted:
Fri Jun 20, 2014 12:51 am
by TedWalther
I would do it using a context to store internal state, each call to the context/function would update the state and return it. Look at the implementations of gensym on here for ideas.