All Questions
3 questions
6
votes
1
answer
429
views
How to implement guarded recursion in strictly evaluated languages?
I implemented a Scott encoded List type in Javascript along with an overloaded append function that mimics the Semigroup typeclass.
append works just fine but for large lists it will blow the stack. ...
2
votes
1
answer
580
views
What is wrong with this recursive Promise function with jQuery Deferred
I am working on my scripts for ReST API processes. Now I need a function which keeps retrying to request to the API as many as possible in few seconds.
So I wrote some Promise abstractions and I made ...
1
vote
1
answer
923
views
Trampoline, recursion and lazy evaluation
I'm trying to implement basic lazy sequences in JavaScript. I'm only using closures and continuations. This is what I got so far:
var cons = curry(function(x, y, list){
return list(x, y);
});
var ...