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

Variations on a Scheme

Name: Anonymous 2009-11-07 0:47

Come up with variations of your favorite toy problems.  The more satori the better.

I'll start with a mostly kawaii (cute) one:

(defun sepples (mosiacpointeroverflow)
  (reduce #'* (loop for grunner from 1 to mosiacpointeroverflow collect grunner) :initial-value 1))

Name: Anonymous 2009-11-07 20:39


COBRA> (enable-%-syntax)
T
COBRA> #% lambda('(x), expt(2, x)).mapcar(function('oddp).remove-if(list(1,2,3,4,5,6))) %
(4 16 64)
COBRA> (reduce #'* #% lambda('(x), expt(2, x)).mapcar(function('oddp).remove-if(list(1,2,3,4,5,6))) %)
4096


WHERE IS YOUR GOD NOW

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