Skip to content

Commit

Permalink
Need cur to be defined at compile and run time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason committed Nov 9, 2012
1 parent 51bb999 commit 5f0f28a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions combinators.el
Expand Up @@ -7,10 +7,11 @@

(require 'cl)

(defun cur (f &rest args)
"Specialize a function on its first few arguments."
(lambda (&rest more-args)
(apply f (append args more-args))))
(eval-and-compile
(defun cur (f &rest args)
"Specialize a function on its first few arguments."
(lambda (&rest more-args)
(apply f (append args more-args)))))

(defun comp (&rest funcs)
"Compose functions together. Function on the left
Expand Down

0 comments on commit 5f0f28a

Please sign in to comment.