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

NEED LIST OF R5RS EXPRESSIONS N PROCEDURES

Name: Anonymous 2012-10-01 2:32

Gonna hunt each one down n kill

Name: Anonymous 2012-10-01 15:26

>>5
point-free style
Is this better?
(defun compose (f g . ())
  (lambda (x . ())
    (funcall f (funcall g x . ()) . ()) . ()) . ())
(defun flip (f . ())
  (lambda (x y . ())
    (funcall f y x . ()) . ()) . ())
(defun reduced (f . ())
  (lambda (x . ())
    (reduce f x :from-end t . ()) . ()) . ())
(defun curry (f x . ())
  (lambda (y . ())
    (funcall f x y . ()) . ()) . ())
(defun mapped (f . ())
  (lambda (xs . ())
    (map 'list f xs . ()) . ()) . ())

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