Skip to content

Instantly share code, notes, and snippets.

@tkf
Created March 19, 2014 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkf/9633166 to your computer and use it in GitHub Desktop.
Save tkf/9633166 to your computer and use it in GitHub Desktop.
dash and deferred
(require 'dash)
(require 'deferred)
(-> (deferred:next (lambda () 1))
(deferred:nextc (lambda (x) (+ x 1)))
(deferred:nextc (lambda (x) (+ x 1)))
(deferred:nextc 'print))
;; (require 'ari)
;; (ari:with-package deferred
;; (-> (next (lambda () 1))
;; (nextc (lambda (x) (+ x 1)))
;; (nextc (lambda (x) (+ x 1)))
;; (nextc 'print)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment