Name: Anonymous 2005-12-21 8:09
Because I'm learning it, almost done through the tutorial, and it looks great.
[&,=](&&*(**(int a[]))[]){return a;} considered horrible.
(A)*(B) is valid C++ and C code, but in C it can only mean A times B or B dereferenced casted to the type A, in C++ it's also A.operator*(B). And C doesn't have template<... > > > (which is gone in Sepplesox)[&,=](&&*(**(int a[]))[]){return a;} considered horrible.guile> (((lambda (x) x) +) 3 4)
7shift/reset primitives in your Lispy language of choice, how would you implement (make-generator f) such that:(define g
(make-generator
(lambda (yield)
(map yield '(1 2 3 4 5)))))
(g) ; should print 1
(g) ; should print 2
(g) ; should print 3