Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

haskell brain damage cancer invades scheme*

Name: Anonymous 2016-11-11 1:33

http://blog.racket-lang.org/2007/11/getting-rid-of-set-car-and-set-cdr.html

(* depr derp we're not "scheme" anymore... i know)

Name: Anonymous 2016-11-21 15:48

>>11
Oh, okay, I get it, you mean it's kind of like doing var cons = function(first, rest){
return function(f) { return f(first, rest); };
};

var list = function(...atoms){
if(atoms.length == 0) return null;
var lst = cons(atoms[atoms.length-1], null);
for(var i = atoms.length - 2; i >= 0; i--) lst = cons(atoms[i], lst);
return lst;
};
! Programming is fun!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List