Skip to content

Instantly share code, notes, and snippets.

@ideal-knee
Created June 15, 2016 21:55
Show Gist options
  • Save ideal-knee/4842abf5e0e584cfd8d03a5d813f3b97 to your computer and use it in GitHub Desktop.
Save ideal-knee/4842abf5e0e584cfd8d03a5d813f3b97 to your computer and use it in GitHub Desktop.
(defmacro -> (expr-1 expr-2 &rest exprs)
(let ((expr-2-with-expr-1-let `(let ((<- ,expr-1)) ,expr-2)))
(if exprs
`(-> ,expr-2-with-expr-1-let ,@exprs)
expr-2-with-expr-1-let ) ) )
(-> (load-data)
(group-by-species <-)
(gethash 'iris-virginica <-)
(format t "~a~%" <-) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment