fantasyland / static-land

Specification for common algebraic structures in JavaScript based on Fantasy Land
MIT License
772 stars 41 forks source link

Should we use chainRec (if avalible) in runGenerator()? #26

Closed rpominov closed 7 years ago

rpominov commented 7 years ago

It might be a good idea. Need to investigate...

rpominov commented 7 years ago

Done in https://github.com/rpominov/static-land/commit/d82100dbce00b7d3bf538396c2e51877c6137a22

Now runGenerator supports loops with number of iterations greater than max call stack size!

rpominov commented 7 years ago

Related: https://github.com/fantasyland/fantasy-land/pull/152